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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't update foxpro table from VB6 through ADO

Status
Not open for further replies.

Damby

Programmer
Jan 29, 2002
13
0
0
CA
I am trying to update a foxpro "loose" table from VB6 through ADO. Here is how:

Set rstProduiAvan = CreateObject("ADODB.Recordset")

rstProduiAvan.CursorType = adOpenStatic
rstProduiAvan.LockType = adLockOptimistic
rstProduiAvan.CursorLocation = adUseClient

rstProduiAvan.Open "SELECT * FROM produi", cnnProdui

rstProduiAvan.MoveLast
szChaineRecherche = "PChamp3 = '" + rst!Pro_Id + "'"
rstProduiAvan.Find szChaineRecherche, 0, adSearchBackward
rstProduiAvan!PPROREMPL = szCleManu
rstProduiAvan.Update

I just can't get Ado to update the table. I keep getting a message stating that the Instruction is too long (error -2147467258 (80004005))

I tried to do it many other ways but it never works. If I try other other operations like queries, everything works fine. My problem is when I try to update the table.

Some helps would be welcome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top