473,385 Members | 1,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to add a password to 1 switchboard option

1
Hello,
I am somewhat a newbie to Access and am trying to find out if there is a way to isolate one button on the switchboard with a password? That one switchboard option leads to another list of options that I don't want accessible to anyone else but my small department.

I have looked in several reference books and many different places but haven't found how to do that particular thing. Thanks! ---Dina
Oct 25 '06 #1
3 4282
NeoPa
32,556 Expert Mod 16PB
Have the On Click property point to a procedure (subroutine) which, instead of calling the restricted form directly, uses an
Expand|Select|Wrap|Line Numbers
  1. InputBox(prompt[, title] [, default] [, xpos] [, ypos] [, helpfile, context])
call first to get a string which can be compared to your correct password.
Then, only call the restricted form if the password is correct.
Oct 25 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
Hello,

I am somewhat a newbie to Access and am trying to find out if there is a way to isolate one button on the switchboard with a password? That one switchboard option leads to another list of options that I don't want accessible to anyone else but my small department.

I have looked in several reference books and many different places but haven't found how to do that particular thing. Thanks! ---Dina
In the current on click event of the button you have something like:

=HandleButtonClick(1)

Change this to [Event Procedure]

Write your code to get password

if password is correct put

HandleButtonClick(1)

Else give warning message

The only problem with this is that this button number will always behave like this on the switchboard
Oct 26 '06 #3
Put this code behind a conrtol button on your form:

Private Sub Command148_Click()
On Error GoTo Err_Command148_Click

Dim stDocName As String
Dim stLinkCriteria As String
Dim strForm As String

strForm = "frm_Password"
DoCmd.OpenForm strForm, , , stLinkCriteria, , acDialog

If strPassword = "reviewer" Then
stDocName = "frm_Ser_needed"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If

Exit_Command148_Click:
Exit Sub

Err_Command148_Click:
MsgBox Err.Description
Resume Exit_Command148_Click

End Sub

This will generate a security box (hopefully) which when filled in with
the password will open the secured form.
Good luck.
Oct 27 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Michael Keene | last post by:
I have a query that I'd like to add to my switchboard, but when I use the switchboard manager I only get the option to run a report, a macro or open a form. Is there a way to add a query without...
1
by: jimwlee | last post by:
Hi all, I mistakenly deleted my switchboard on the Object Forms view. I recreated it again with the database utility, but the switchboard isn't showing up in the forms view. Any ideas? Thanks in...
2
by: fong.yang | last post by:
I've used the wizard to create several forms to be open with the switchboard. I want to password enable one of my forms that is opened from the switchboard. The form is called Admin Functions. Is...
1
by: DAISY123 | last post by:
2 things - 1) I have created a a database for hotels for marketing. There is a form, a switchboard manager, and a table of the form. However, when I enter data on the table of form, it does not show...
1
by: Yetti | last post by:
I would like to create a switchboard showing all tables that would open each table upon selecting the control box. The switchboard manager does not appear to allow you to select specific tables as...
9
by: amanda27 | last post by:
Is there anyway to password protect a switchboard button the main switchboard so they can not get to the swtichboard it goes to or any of it's options? Please help I have been trying code I found...
2
by: fmsummerton | last post by:
I am attempting to troubleshoot a database that I did not create. The main menu was obviously created with the switchboard manager, but when I try to access the switchboard manager from the add-in...
1
by: Lori2836 via AccessMonster.com | last post by:
Can you tell me if there is a way to encrypt my password? I would like it to just show ***** instead of the actual letters. Here is the code...... Private Sub Command11_Click() Dim...
9
by: angi35 | last post by:
Hi - In Access 2000, I'm trying to create a switchboard so users can open a certain form with different filters. I thought I would use an option group with toggle buttons. I suppose it could be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.