473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password in access

2 New Member
hello,
could somebody help me how to create passwords in access? I want to have a securitypassword for some forms and reports. Is that possible? and how can I do it that it doesnt show the letters but just stars for the letters? so that its not visible...
thanks very much!
Jan 30 '08 #1
3 1574
MindBender77
234 New Member
hello,
could somebody help me how to create passwords in access? I want to have a securitypassword for some forms and reports. Is that possible? and how can I do it that it doesnt show the letters but just stars for the letters? so that its not visible...
thanks very much!
you could design a small form (Modal) that would open on the OnLoad event of the main form.

In this Modal form, you could have a simple textbox and an exit button. The textbox would contain the Input Mask of "PASSWORD". This will prevent the keystrokes of the password from being displayed. Only astrisks will be visible.

If the correct password is entered the modal close allowing access to the main form. If the incorrect password is entered you could display a message like "Incorrect Password, Do you want to try again".

Hope this points you in the right direction,
JS
Jan 30 '08 #2
Henrike
2 New Member
you could design a small form (Modal) that would open on the OnLoad event of the main form.

In this Modal form, you could have a simple textbox and an exit button. The textbox would contain the Input Mask of "PASSWORD". This will prevent the keystrokes of the password from being displayed. Only astrisks will be visible.

If the correct password is entered the modal close allowing access to the main form. If the incorrect password is entered you could display a message like "Incorrect Password, Do you want to try again".
Thanks, I managed that it just shows asteriks, but the event thing doesn't work. So I type in Event OnLoad "MainMenu" and than it the passwordmanager should appear when I open the MainMenu right? that doesn't work so far...
An how can I tell the box which the correct password will be? Where do I type that in? And where do I type in a message like "incorrect password, do you want to try again"?
Sorry...I'm really not familiar with Access.
Thank you so much!
Jan 30 '08 #3
MindBender77
234 New Member
Thanks, I managed that it just shows asteriks, but the event thing doesn't work. So I type in Event OnLoad "MainMenu" and than it the passwordmanager should appear when I open the MainMenu right? that doesn't work so far...
An how can I tell the box which the correct password will be? Where do I type that in? And where do I type in a message like "incorrect password, do you want to try again"?
Sorry...I'm really not familiar with Access.
Thank you so much!
Note I notice this code will only work with a command button.

On the OnOpen event of your MainMenu, your going to need:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "passwordmanager", acNormal
  2.  
As for the password entry on the OnClick event of a command button in the Modal form:
Expand|Select|Wrap|Line Numbers
  1. Dim msg,style,title,response
  2.  
  3. If Textbox = "yourpassword" then
  4. docmd.close
  5. else
  6. msg = "The password you entered is incorrect. Do you want to try again?"
  7. style = vbYesNo + vbExclamation + defaultbutton2
  8. title = "Incorrect Password"
  9. response = msgbox(msg,style,title)
  10. If response = vbYes then
  11. textbox.setfocus
  12. textbox = ""
  13. end if
  14. if response = vbNo
  15. docmd.quit
  16. end if
  17. end if
  18.  
Hope this helps,
JS
Jan 31 '08 #4

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

Similar topics

4
18932
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL...
0
2082
by: com | last post by:
MS Access 2000 Password Recoverer 4.2 Screenshot - Soft30.com MS Access 2000 Password Recoverer will display the password to a MS Access database (*.mdb). This program works for MS Access files...
2
5994
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
6
2398
by: Frank L | last post by:
I have some accounting and tax receipting type applications, developed for charitable and non profit groups, that are exhibiting strange behaviour on a few of the 30 or 40 user machines. When...
30
6930
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
0
7018
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
7182
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
7232
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...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.