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 > Autoincrement Select with ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-03, 09:34
anuindia anuindia is offline
Registered User
 
Join Date: Oct 2003
Posts: 23
Autoincrement Select with ODBC

Dear my friends....

I have a DB2K column with auto_increment, namely "PO_NO".
I want to know how to Select a record based on Autoincrement field.
For example:

selectquery = SELECT * from TBLPO where PO_NO = " + CSTR(inputPO.Text) + "

here inputPO.Text is a textbox in VB form.
On Excute statement, It gives me an ODBC error as [Microsoft][ODBC dBase Driver] Unexpected error from external database driver (9986).

while if I runthe same query with a Numeric field, it works fine.

Please let me know how can I search on the BASIS of Autoincrement field.

Thank you very much.

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