How do I make a macro run upon opening my database? I want (upon open) my WelcomeForm to open.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Run Macro On Open? (Office XP)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Run Macro On Open? (Office XP)
- This topic has 20 replies, 3 voices, and was last updated 20 years, 5 months ago.
AuthorTopicWSNYIntensity
AskWoody LoungerDecember 2, 2004 at 11:27 pm #413043Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerDecember 2, 2004 at 11:39 pm #908197You don’t need a macro for that. Select Tools | Startup… In the Startup dialog, you can specify which form (if any) will be displayed when the database is opened, whether the database window will be visible etc.
Notes:
– You can bypass these options by keeping the Shift key down while opening the database.
– You can disable the Shift key as bypass key, see for example post 181926.
– If you want to use a macro instead, name it AutoExec. It will be executed automatically when the database is opened.
– Again, running AutoExec can be prevented by keeping Shift down, unless this has been disabled. -
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody LoungerDecember 3, 2004 at 12:30 am #908224Well yes, I have my admin user level set, but 1) how do i create more? Also – I have two tables, my main table (Table 1), and another one (Table 2), both have ssn. I want to allow multiple occurrances of SSN in Table 2, as Table 2 will contain recurring events (scores from competitions…) how do I have to set that up? I’m trying to set up a form where all that is entered is SSN, date, and score (assuming that will create a new record), and then I can create a report saying who hasn’t competed, as well as all previous competition scores. I’d also like to export that info as excel, so I don’t have to PRINT the grouped report….
-
WSHansV
AskWoody LoungerDecember 3, 2004 at 12:45 am #908230That’s a lot of questions in a few lines!
– You really should study the documents referred to in post 432371. The first link in WendellB’s tutorial, ACC2000: Microsoft Access Security FAQ Available in Download Center is very useful, it explains a lot of details about setting up security.
– You want a one-to-many relationship between Table1 and Table2 on the SSN field. This implies that SSN is the primary key in Table1, but not in Table2. To learn more about the types of relationships between tables, study a good book about database design (for example Access Database Design and Programming by Steven Roman). In the meantime, you can download a short paper by Microsoft from “Understanding Relational Database Design” document is available in Download Center.
– You can export tables, queries, … to Excel.
-
WSNYIntensity
AskWoody LoungerDecember 3, 2004 at 12:59 am #908239A lot of the security I’ve figured out….I just realized I needed the One – To – Many relationship, but forgot that I’d set the SSN as the primary key in Table 2. My primary key is only in table 1, but when i try to enter a ssn again in the form to add another instance, it won’t let me….
-
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody LoungerDecember 3, 2004 at 12:59 am #908240A lot of the security I’ve figured out….I just realized I needed the One – To – Many relationship, but forgot that I’d set the SSN as the primary key in Table 2. My primary key is only in table 1, but when i try to enter a ssn again in the form to add another instance, it won’t let me….
-
WSHansV
AskWoody LoungerDecember 3, 2004 at 12:45 am #908231That’s a lot of questions in a few lines!
– You really should study the documents referred to in post 432371. The first link in WendellB’s tutorial, ACC2000: Microsoft Access Security FAQ Available in Download Center is very useful, it explains a lot of details about setting up security.
– You want a one-to-many relationship between Table1 and Table2 on the SSN field. This implies that SSN is the primary key in Table1, but not in Table2. To learn more about the types of relationships between tables, study a good book about database design (for example Access Database Design and Programming by Steven Roman). In the meantime, you can download a short paper by Microsoft from “Understanding Relational Database Design” document is available in Download Center.
– You can export tables, queries, … to Excel.
-
-
WSNYIntensity
AskWoody LoungerDecember 3, 2004 at 12:30 am #908225Well yes, I have my admin user level set, but 1) how do i create more? Also – I have two tables, my main table (Table 1), and another one (Table 2), both have ssn. I want to allow multiple occurrances of SSN in Table 2, as Table 2 will contain recurring events (scores from competitions…) how do I have to set that up? I’m trying to set up a form where all that is entered is SSN, date, and score (assuming that will create a new record), and then I can create a report saying who hasn’t competed, as well as all previous competition scores. I’d also like to export that info as excel, so I don’t have to PRINT the grouped report….
-
-
WSHansV
AskWoody Lounger
-
-
WSNYIntensity
AskWoody Lounger
-
-
WSHansV
AskWoody LoungerDecember 2, 2004 at 11:39 pm #908198You don’t need a macro for that. Select Tools | Startup… In the Startup dialog, you can specify which form (if any) will be displayed when the database is opened, whether the database window will be visible etc.
Notes:
– You can bypass these options by keeping the Shift key down while opening the database.
– You can disable the Shift key as bypass key, see for example post 181926.
– If you want to use a macro instead, name it AutoExec. It will be executed automatically when the database is opened.
– Again, running AutoExec can be prevented by keeping Shift down, unless this has been disabled.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
3 hours, 59 minutes ago -
No HP software folders
by
fpefpe
4 hours, 44 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
30 minutes ago -
Stay connected anywhere
by
Peter Deegan
10 hours, 7 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 20 minutes ago -
The Windows experience
by
Will Fastie
16 hours, 21 minutes ago -
A tale of two operating systems
by
Susan Bradley
7 hours, 17 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
21 hours, 41 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 13 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
6 hours, 7 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 13 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 6 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 6 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 7 hours ago -
MS Passkey
by
pmruzicka
1 day, 9 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 15 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 2 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 14 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 10 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 19 hours ago -
AI slop
by
Susan Bradley
1 day, 13 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 20 hours ago -
Two blank icons
by
CR2
1 day, 4 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 6 hours ago -
End of 10
by
Alex5723
4 days, 8 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 5 hours ago -
test post
by
gtd12345
4 days, 14 hours ago -
Privacy and the Real ID
by
Susan Bradley
4 days, 4 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 6 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.