Run VBA when Access opens?

  • Thread starter Thread starter djw
  • Start date Start date
D

djw

Is there anyway to get Access to run some code as soon as it is opened
(without using a form)?

Is there an Access equivalent to doing something like the following in
Excel:
Private Sub Workbook_Open ()
'some code that runs when opened
End Sub

Thank you,
David
 
Never mind I found it in the group.

All that is required is to create a Macro called AutoExec.
 
SQL Server Agent makes it quite easy to launch VB code on a scheduled
basis.

it's free with MSDE, and it's 100 times superior to anything in Jet
 
djw said:
Never mind I found it in the group.

All that is required is to create a Macro called AutoExec.

Correct.

Please ignore Aaron's reply as it is completely irrelevant to your
situation.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Please ignore Aaron's reply as it is completely irrelevant to your
situation.

This could be more succinctly stated thus:

Please ignore Aaron's reply as it is from Aaron.

(i.e., by definition, non-responsive, and in 99.99% of cases,
factually wrong)
 
Tony Toews said:
Correct.

Please ignore Aaron's reply as it is completely irrelevant to your
situation.

I'm reading this newsgroup at "news.aioe.org" and don't see a reply from
Aaron -- I wonder if someone at that news provider saw right through him and
just blocked his posts?

Larry
 
Larry;

Yes, maybe you subscribe to a list that sponsors censorship.

Maybe you should stop playing with Jet and learn a real mans database.

-Aaron
 
It's actually not irrelevent.

SQL Server Agent is a ton more powerful than Jet macros, and it is a
flawless migration path.
 

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

Back
Top