Need help please.. DAO To ADO Code

marvin67

Registered User.
Local time
Tomorrow, 10:46
Joined
Apr 8, 2004
Messages
11
Hi,

I'm trying to convert this code on my access database. This is a mapping code that transfer fields info to another table using a map table.

I'm getting a runtime error 3265 when executing the code that points to the fields on the map as below

Do Until rstMap.EOF
rstOrd(rstMap!targetfieldname) = rstCust(rstMap!sourcefieldname)
rstMap.MoveNext

It's run fine on DAO. I'm no expert in programming. I've learned simple coding through experience.

Please help.

Thanks
:confused:
 

Attachments

If is has run fine on DAO, why are you changing to ADO?
 
Because I am trying to move my tables to mysql server. My understanding is DAO won't work on server environment. So i have to recode my dao to ado before going to the server route.
 
That's not true. I've developed an application with MySQL using DAO.

My belief is that it's good sense to use linked table/DAO for most of cases where you want simple table binding to the form, and use ADO where we require an interface that's more complex and either not easily expressed in DAO or requires stored routines while keeping the form fully updatable. So I actually mix DAO and ADO as the needs dictate.
 
That's not true. I've developed an application with MySQL using DAO.

My belief is that it's good sense to use linked table/DAO for most of cases where you want simple table binding to the form, and use ADO where we require an interface that's more complex and either not easily expressed in DAO or requires stored routines while keeping the form fully updatable. So I actually mix DAO and ADO as the needs dictate.
Good statement of what I was thinking as well.
 
Thanks for enligthening me on this one. I have exported my tables in mysql and link the tables to my front end, but this code didn't work. I think it is something to do with adding record in the table if it has an autonumber field on it.

I will try to run again the code and check what is the error code. I am not at work at the moment. i'll post the error tomorrow.

Cheers
 

Users who are viewing this thread

Back
Top Bottom