You are here:

Using MS Access/Password Protecting a Control on a Form

Advertisement


Question
QUESTION: Hi, Scott.

I have a form control in access 2010 that I am trying to password protect.  I have it set up now with a checkbox visible and invisible with an input box code but what I need is a textbox to put the password in so that it is formatted like ******* and I have multiple users.  

Can you help me, Please??

Thanks,

Seliena

ANSWER: So add a textbox to enter the password and give that textbox an Input Mask of Password. You can't use an Input Mask with an Input box.

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

---------- FOLLOW-UP ----------

QUESTION: So, when I do this the textbox stays populated with the password from one record to the next. How do I fix this?  Thanks for your help.

Answer
The text box is unbound. This will cause it to retain its value from record to record. You can blank the textbox in the On Current event

Me.controlname = ""

However, unless the password is the same, does it really matter that the password box shows a string of asterisks?

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.