Bob Darlington
unread,Jun 3, 2012, 9:34:57 PM6/3/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I'm getting the above error message at the line 'Set db = ...' in the
following code (which is called from the autoexec macro before anything else
happens).
Dim ws as Workspace, db as DAO.Database
set ws = Workspaces(0)
set db = Currentdb
If I remove the 'set ws = ...' line, then the message doesn't appear.
But I need the ws for a transactions routine which follows in the same
function.
I've tried various options for 'set db = ' but with no success.
I'm using similar code throughout the database without a problem.
Can anyone help?
--
Bob Darlington
Brisbane