If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > data format problem - VB6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-03, 04:14
kswong kswong is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
data format problem - VB6

Private Sub disp_Click()
adodc1.RecordSource = "select t_item, t_dsca, t_stoc from baan.ttiitm001800 where t_item >= '" & Trim$(rm1.Text) & "' and t_item <= '" & Trim$(rm2.Text) & "'"

adodc1.Refresh

Set DataGrid1.DataSource = adodc1

DataGrid1.Columns(2).NumberFormat = "Standard"

End Sub

Comments:
Actual data in Informix database for t_stoc is 13310, but when it is
displayed in VB6 datagrid column 2, we get 8.39591932516603E-316,
another info is that the Informix field is in "float" format.
We have tried using Scientific, Fixed, General and the results are 0.00.
Any help will be greatly appreciated.
Pls help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On