Can I make an input mask in an input box ?
You can't.
You'll have to create your own unbound form.
Add an unbound text control.
Set the control's Input Mask property to Password.
Add a command button.
Code It's Click event:
Me.Visible = False
Name this form "PassForm"
Then instead of opening the InputBox() open this form, using:
DoCmd.OpenForm "PassForm", , , , , acDialog
If forms!PassForm!ControlName = "The Password" Then
' Password's OK. Do something
Else
' Password not OK. Don't do something here
End If
DoCmd.Close acForm, "PassForm"
When you open the PassForm, processing will halt until the password
has been entered and the PassForm command button has been clicked.
Then processing will continue and the PassForm will be closed.