I have a button on a form that opens up another form within the same database. Would like to know how I can make this button secure with a password. Want to see when user clicks on this button a message box apperar requesting password id before allowing user to enter the associated form. If password is incorrect then a message box will appear saying so. Thanks in advance for your time and help
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Button Security
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Button Security
- This topic has 7 replies, 5 voices, and was last updated 23 years, 7 months ago.
Viewing 1 reply threadAuthorReplies-
WScharlotte
AskWoody LoungerJanuary 21, 2001 at 8:29 am #1776480If you’re using Access security, you could simply assign permissions to the second form for particular users or groups, so no password would be needed. Alternatively, with security in place, you could check the user group the user was in and hide the button altogether if the user doesn’t have permission to see it.
-
WSSimonP
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSSupport4John
AskWoody LoungerAugust 23, 2001 at 9:26 pm #1787353http://www.DataBaseCreations.com has security tools to take security to the control level.
HTH John Graves
-
-
-
davidd
GuestAugust 24, 2001 at 5:07 pm #1787387I have used this code many times.
Private Sub close1_Click()
On Error GoTo Err_close1_Click
Dim stDocName As String
Dim stLinkCriteria As StringIf InputBox(“Enter Password for Directory Maintenance”, “Confirm Delete”) = “YOURPASSWORD” Then
‘stdocname is the form to open after the PW is entered
stDocName = “frmDateTime”
DoCmd.close
DoCmd.OpenForm stDocName, , , stLinkCriteriaEnd If
Exit_close1_Click:
Exit SubErr_close1_Click:
MsgBox Err.Description
Resume Exit_close1_ClickEnd Sub
-
WSjonathon
AskWoody Lounger -
WSSupport4John
AskWoody LoungerAugust 24, 2001 at 5:46 pm #1787405This is OK
What happens when users leave and new users start using the system? How many hardcoded objects have to be changed? Could be a maintenance nightmare.
With the following code, its all done once in one place by the system administrator
http://www.DataBaseCreations.com has security tools to take security to the control level.
HTH John Graves
-
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
-
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
3 hours, 9 minutes ago -
Apple backports fixes
by
Susan Bradley
3 hours, 18 minutes ago -
Win 11 24H2 will not install
by
Michael1950
3 hours, 23 minutes ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
2 hours, 54 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
5 hours, 2 minutes ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
3 hours, 11 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
16 hours, 3 minutes ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
19 hours, 50 minutes ago -
simple general stupid question
by
WSaltamirano
13 hours, 50 minutes ago -
April 2025 Office non-Security updates
by
PKCano
1 day, 6 hours ago -
Microsoft wants to hear from you
by
Will Fastie
6 hours, 57 minutes ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
1 day, 10 hours ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
1 day, 15 hours ago -
Test post
by
Susan Bradley
1 day, 18 hours ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
1 day, 19 hours ago -
SSD shuts down on its own
by
CWBillow
1 day, 11 hours ago -
OneDrive File Sharing Changes
by
David Clark
2 days, 3 hours ago -
OneDrive File Sharing Changes
by
David Clark
2 days, 5 hours ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
1 day, 6 hours ago -
Today is world backup day
by
Alex5723
1 day, 21 hours ago -
Windows .exe on Mint
by
Slowpoke47
2 hours, 37 minutes ago -
Reviewing your licensing options
by
Susan Bradley
3 hours, 31 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
1 day, 2 hours ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
22 hours, 39 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
23 hours, 59 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
2 days, 3 hours ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
2 days, 1 hour ago -
YouTube Ad Blocker Blocker
by
bbearren
2 days, 1 hour ago -
Obscure historical facts about Windows
by
Cybertooth
2 days, 3 hours ago -
Microsoft Backup
by
Linda2019
1 day, 19 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.