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 > Wrong number of parameters. SQLSTATE =07001

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-04, 06:21
monkey723 monkey723 is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
Question Wrong number of parameters. SQLSTATE =07001

I'm using Visual Basic 6.0 to update a DB2 database.

As I know we can either use .Addnew method of an ADO Recordset object or SQL INSERT statement to Insert a new DB2 record.

I have definied a table in DB2 with a field name "FLDERROR" having the data type "Long VARCHAR"

By using .Addnew method, part of my VB coding is as follows :

adoRecordSet.AddNew
adoRecordSet!FLDCUSTID = "1"
adoRecordSet!FLDADDR = "NEW YORK"
adoRecordSet!FLDAGE = "18"
adoRecordSet!FLDGRADE = "01"
adoRecordSet!FLDERROR = "ABC"


when I run the program, the program ends in error at the highlighted statement and prompts the message :

Run-time error '-2147467259(80004005)':
CLI0100E Wrong number of parameters. SQLSTATE = 07001

Do anyone can help what's wrong with that ? I didn't hit any error when updating "Character" / "VARCHAR" field in DB2 by using the same method.
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