473,385 Members | 1,769 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.

Password protect a switchboard button on the main switchboard Access 2003

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 on the internet but it does not seem to be working.
Thanks
Apr 2 '07 #1
9 12347
Rabbit
12,516 Expert Mod 8TB
So... basically you want to password protect some of the options on the main form?
Apr 2 '07 #2
I want to protect one button on the mainform that goes to another switchboard with other options. Pretty much it's like the Admin Menu which only one person should have access too.

So... basically you want to password protect some of the options on the main form?
Apr 2 '07 #3
Rabbit
12,516 Expert Mod 8TB
Do you have other security measures in place? Or will this be the only security measure you need?
Apr 2 '07 #4
This is the only one I will need.

Do you have other security measures in place? Or will this be the only security measure you need?
Apr 2 '07 #5
Rabbit
12,516 Expert Mod 8TB
You'll want to create a mediating form that has a textbox for them to enter a password. Then code will run, possibly on the click of a button that checks this password.

This is unsecure until you convert it to an mde.

Another route is to use the mdw security system built into Access that requires them to log in to access the database. Through code, the form will then only allow them to use the button if they are a member of the Admins group.
Apr 2 '07 #6
Do you know what the code is that I would use? I am not very good in the coding department.

You'll want to create a mediating form that has a textbox for them to enter a password. Then code will run, possibly on the click of a button that checks this password.

This is unsecure until you convert it to an mde.

Another route is to use the mdw security system built into Access that requires them to log in to access the database. Through code, the form will then only allow them to use the button if they are a member of the Admins group.
Apr 3 '07 #7
Rabbit
12,516 Expert Mod 8TB
Well basically if you have a textbox called txtPassword and a button called butSubmit:
Expand|Select|Wrap|Line Numbers
  1. Private Sub butSubmit_Click()
  2.    If Me.txtPassword = "Some Password" Then
  3.       ' Password is correct, continue.
  4.    Else
  5.       MsgBox "Login Failed", vbOkOnly
  6.       ' Password is incorrect, do not continue.
  7.    End If
  8. End Sub
Apr 3 '07 #8
Hi ok i also just want to password protect a button on the switchboard as i will be th only one adding and deleting data
Apr 11 '07 #9
ADezii
8,834 Expert 8TB
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 on the internet but it does not seem to be working.
Thanks
Because the Switchboard is basically a single Form that is dynamically created and modified, it would be very difficult to accomplish what you are requesting. It would, however, be a relatively simple task to bring up an Intermediate Password Entry Form that would prompt the User for a User Name/Password combination and then proceed accordingly. Basically, a Switchboard Button would call a Public Function that would provide this functionality.
Apr 11 '07 #10

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

Similar topics

4
by: Terry | last post by:
I have created a Main Switchboard in Access 2000 and it has a button which opens a Form. I have set the form Properties Default View to Datasheet and this always opens in datasheet view. When I...
2
by: Terry | last post by:
I have created a switchboard, created using Access 2000. If I put the mouse anywhere on the form, outside of the checkboxes and scroll the wheel backwards, I get the following error. Run-Time...
2
by: Jimi Ffondu | last post by:
Hi there - it's pretty simple, and I'm an idiot. I'm not a developer, I just seem to have landed in this job building this Access database - I've got two days to make it work... aaahh! 1) ...
8
by: Ray Greene | last post by:
I was working in Access and everything disappeared from the screen. When I closed and reopened the file there was no switchboard. I can open tables and forms etc if I select a category from the...
3
by: dmc226 | last post by:
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...
9
by: mtgrizzly52 | last post by:
Hi all, I've looked for an answer for this in lots of books, online in several discussion groups and have not found the answer which I feel may be very simple. What I want to do is have a...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
2
by: Earl Anderson | last post by:
In Acc2003, I have a situation in which I have a main switchboard and upon pressing one of its buttons , takes the user to another sub hierarchical switchboard. Pressing one of these buttons could...
4
by: pacarv | last post by:
I've created a database in Access 2003 with multiple reports that are accessable from the switchboard. The switchboard also has a print button. The user selects the report from the menu which then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.