InputBox

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Thank you TC for your prompt reply. I will use thena popup modal form

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