Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2006

Tip: Looking for answers? Try searching our database.

AutoExec in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BOONER - 25 Sep 2006 22:09 GMT
How do I write code in a module that will act like an AutoExec macro?  
Basically, I need the same results that "sub Auto_open()" would give in
Excel.
Douglas J. Steele - 25 Sep 2006 22:41 GMT
Create an AutoExec macro that calls your code. (Remember that macros can
only call Functions, not Subs)

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> How do I write code in a module that will act like an AutoExec macro?
> Basically, I need the same results that "sub Auto_open()" would give in
> Excel.
BOONER - 26 Sep 2006 15:03 GMT
Excelent

> Create an AutoExec macro that calls your code. (Remember that macros can
> only call Functions, not Subs)
>
> > How do I write code in a module that will act like an AutoExec macro?
> > Basically, I need the same results that "sub Auto_open()" would give in
> > Excel.
Klatuu - 25 Sep 2006 22:45 GMT
Write your code as a function.
Use the RunCode action in the Autoexec macro and specify the name of the
function.
The RunCode action will only run functions.  No return value is required.

> How do I write code in a module that will act like an AutoExec macro?  
> Basically, I need the same results that "sub Auto_open()" would give in
> Excel.
BOONER - 26 Sep 2006 15:03 GMT
Thanks

> Write your code as a function.
> Use the RunCode action in the Autoexec macro and specify the name of the
[quoted text clipped - 4 lines]
> > Basically, I need the same results that "sub Auto_open()" would give in
> > Excel.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.