jordanking
Programmer
- Sep 8, 2005
- 351
Hello,
I am gathering a adodb recordset from Access 2003 in order to update a remote mysql database (via myODBC).
I have the connection and update query working properly.
The problem that occurs is that one specific field produces an error. The table that I am pulling from has 21 fields. The field prodcing an error is the only "date" field.
So I have removed it from the update sql and everything works. I isolated the field in the following code in order to reproduce the error:
I am trying to get the date value and format it into a mySQL format. But when the code gets to the recordset field call, the following error occurs:
I normally get this error when i misspell the field but i have triple checked the spelling.
I am not sure where to go next in the debugging of this problem. I need some help in order to determine what is going wrong.
Thank you in advance
JK
I am gathering a adodb recordset from Access 2003 in order to update a remote mysql database (via myODBC).
I have the connection and update query working properly.
The problem that occurs is that one specific field produces an error. The table that I am pulling from has 21 fields. The field prodcing an error is the only "date" field.
So I have removed it from the update sql and everything works. I isolated the field in the following code in order to reproduce the error:
Code:
dtUpdate = Format(rsCustUpdate.Fields("dtUpdated"), "yyyy-mm-dd hh:nn:ss")
I am trying to get the date value and format it into a mySQL format. But when the code gets to the recordset field call, the following error occurs:
Run-time error '3265': Item cannot be found in the collection corresponding to the requested name or ordinal.
I normally get this error when i misspell the field but i have triple checked the spelling.
I am not sure where to go next in the debugging of this problem. I need some help in order to determine what is going wrong.
Thank you in advance
JK