Hi, all, not sure if this can be done or not, so here goes...

As you know, if an autoexec macro exist in an access database it will execute this when a user opens the database.

Is there a way I can do the same if someone accesses my database via code?
(ADO or DAO). I have a DB that's pretty well locked down except for this. I can control everything the user is able to do if they open the database normally, but I want to be able to do the same if someone opens a ADO/DAO connection to my database.

Thanks in advance

Strick