Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Datagrid with VB6

Status
Not open for further replies.

nwb1

Programmer
Apr 28, 2004
39
GB
Hi
I have a datadrid on my form and that links to a database as follows.

dim strID
strID=13
Adodc1.CommandType = adCmdUnknown
Adodc1.ConnectionString = cnBCD="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\ASF.mdb"
Adodc1.RecordSource = "SELECT hdd,C1,y0,y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11,y12,y13,y14,y15 FROM NPC WHERE BCID=" & strID
Adodc1.Refresh

When I edit the data, program displays this error message Key column information is insufficent or incorrect. Too many rows were affected by update.

this happen when I leave some fields blank, and move on to another row?
Can anyone tell me how to correct this?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top