Cannot execute data definition statements on linked data sources - A2003

L

Larry Mehl

Hello --

I want to maintain my backend mdb using code in my frontend.

example:
DROP and ADD constraints
CREATE TABLE

I receive error 3611 - Cannot execute data definition statements on linked
data sources

Is this not a recommended way to do things?

Can anyone recommend how to perform this kind of maintenance?

My coding skills are beginner-intermediate; I would appreciate an example,
pseudo-code, or URLs which can help me.

Thanks in advance for any help.

Larry Mehl
 
B

Brendan Reynolds

You just need to get a connection to the back-end database and execute the
SQL statement using that connection. If using DAO, use DbEngine.OpenDatabase
instead of CurrentDb. If using ADO, open a new ADODB Connection instead of
using CurrentProject.Connection.
 
K

Klatuu

The error message is giving you the answer. It says you have to do that from
the backend, you can't do it from the front end.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top