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 LoungerWSHansV
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
-
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
41 seconds ago -
False error message from eMClient
by
WSSebastian42
4 hours, 39 minutes ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
2 hours, 55 minutes ago -
Office 2021 Perpetual for Mac
by
rebop2020
4 hours, 8 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
7 hours, 39 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
8 hours, 1 minute ago -
Outdated Laptop
by
jdamkeene
13 hours, 5 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
18 hours, 30 minutes ago -
Another big Microsoft layoff
by
Charlie
18 hours, 10 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
1 hour, 5 minutes ago -
May 2025 updates are out
by
Susan Bradley
30 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
1 day ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
1 day ago -
Drivers suggested via Windows Update
by
Tex265
1 day ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
21 hours, 50 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day, 7 hours ago -
Apple releases 18.5
by
Susan Bradley
1 day, 1 hour ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 8 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 9 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
16 hours, 25 minutes ago -
No HP software folders
by
fpefpe
1 day, 16 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
14 hours, 10 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 22 hours ago -
Copilot, under the table
by
Will Fastie
39 minutes ago -
The Windows experience
by
Will Fastie
2 days, 4 hours ago -
A tale of two operating systems
by
Susan Bradley
8 hours, 41 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 9 hours ago -
Where’s the cache today?
by
Up2you2
3 days, 1 hour ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 17 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 18 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.