how to (hide) data in a text box

  • Thread starter Thread starter Richard_V_Farrell
  • Start date Start date
R

Richard_V_Farrell

I have several text boxes on my forms that are private.
I want to hide or password protect these. However I do not
want to have the entire data base password protected. Just
a few text boxes.

Thank You for your help in advance.
Rich Farrell
(e-mail address removed)
 
Hi Rich,

Here's a way using a textbox control "text0" to capture the password
entered. If the password entered equals "password" then the textbox
controls "text2" and "text4" are visible.


If Me.Text0 = "password" Then
Me.Text2.Visible = True
Me.Text4.Visible = True
End If


You can place this code behind the AfterUpdate event of textbox "text0" or
behind a command button.

On the OnOpen event of your Form you want to put the following

Me.Text2.Visible = False
Me.Text4.Visible = False


I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights


--------------------
| Content-Class: urn:content-classes:message
| From: "(e-mail address removed)"
<[email protected]>
| Sender: "(e-mail address removed)"
<[email protected]>
| Subject: how to (hide) data in a text box
| Date: Mon, 4 Oct 2004 07:38:29 -0700
| Lines: 8
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcSqH9CBuyOrVAQGTpyHDcZGdw9B2g==
| Newsgroups: microsoft.public.access.security
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.security:13890
| NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
| X-Tomcat-NG: microsoft.public.access.security
|
| I have several text boxes on my forms that are private.
| I want to hide or password protect these. However I do not
| want to have the entire data base password protected. Just
| a few text boxes.
|
| Thank You for your help in advance.
| Rich Farrell
| (e-mail address removed)
|
 
Back
Top