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 > General > Database Concepts & Design > database returning different values in different systems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-04, 13:54
anuindia anuindia is offline
Registered User
 
Join Date: Oct 2003
Posts: 23
database returning different values in different systems

I am facing a weird problem. I am using the following select query unsing VB6.

strquery = "SELECT * from item_lne where order_no = " + CStr(orderNum) + " AND (delete_lne = 'F' or delete_lne is null)"
Set localrecordset = AGFDB.CONAGF.Execute(strquery)

If localrecordset.RecordCount > 0 Then

....

end if

database engine used is db2k. ODBC is being used for database connectivity, and OS is Windows XP.

when I run "strquery" on db2k command windows it shows me correct result for 8 records, but in program it returns "localrecordset.RecordCount " as 40.

The same software connected to same database is working well, and it is giving me this error only when I am trying to install it on some other computers (same software connected to same database)

Can anyone suggest me if this error has something to do with system "dll" files or BDE or runtime engine or what..? I am clueless.

or please suggest me some resources where I can get some help.

Regards,

Anurag
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