InputBox

G

Guest

Dear gurus,

I use the following code to open a form. Is it possible to hide with
asterisks (password input) what i type in the inputBox?

Thank you in advance

Function OpenFormWithInput()
Dim Msg As String
Dim Title As String
Dim Defvalue As String
Dim Answer As String

Msg = "Enter Password"
Title = "Password verification"
Defvalue = ""
Answer = InputBox(Msg, Title, Defvalue)
If Answer = "123" Then
DoCmd.RunMacro "M_OpenF_DataEntry"
Else
MsgBox "This is an incorrect Password... Try again!"
End If
End Function
 
T

TC

No. The InputBox() function will display whatever is entered. Instead,
consider using a popup modal form with a textbox whose Format property
is set to "Password" IIRC.

HTH,
TC (MVP Access)
http://tc2.atspace.com
 
G

Guest

Thank you TC for your prompt reply. I will use thena popup modal form

Ο χÏήστης "TC" έγγÏαψε:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top