Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autoexec trouble with function

Status
Not open for further replies.

quest4

Technical User
Aug 27, 2001
735
US
I am trying to run a public function throught autoexec macro. When I attempt to launch the database, I get the debugger high liting the first to lines:

Public Function RunOncez()
Dim dbs As Database
Dim rst As Recordset
Dim strSQL
Set dbs = CurrentDb

Thanks to anyone who can help straighten out this one.
 
Corrected by another thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top