By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,162 Members | 999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,162 IT Pros & Developers. It's quick & easy.

Setting the ***** password in a inputbox

P: 74
How do i get the ****** to appear insted of text when it is an inputbox? and not a box inside a form. here is the code i am using

Expand|Select|Wrap|Line Numbers
  1. Public Function bDisableBypassKey_Click()
  2.  
  3.     'This allows a programmer to set the password via a button while accessed in the program.
  4.  
  5.     Dim strInput As String
  6.     Dim strMsg As String
  7.  
  8.  
  9.     strMsg = "Do you want to enable the Bypass Key?" & vbCrLf & vbLf & _
  10.              "Please key the programmer's password to enable the Bypass Key."
  11.  
  12.     strInput = InputBox(Prompt:=strMsg, Title:="Disable Bypass Key Password")
  13.  
  14.     If strInput = "Password" Then
  15.  
  16.         SetProperties "AllowBypassKey", dbBoolean, True
  17.  
  18.         MsgBox "The Bypass Key has been enabled."
  19.  
  20.  
  21.     Else
  22.  
  23.         SetProperties "AllowBypassKey", dbBoolean, False
  24.  
  25.         MsgBox "If you dont know the password you probably shouldnt be here!", vbExclamation, "!WRONG!"
  26.  
  27. End If
  28. End Function
  29.  
Thanks in advance for any help.
Sep 12 '07 #1
Share this Question
Share on Google+
5 Replies


JConsulting
Expert 100+
P: 603
How do i get the ****** to appear insted of text when it is an inputbox? and not a box inside a form. here is the code i am using

Expand|Select|Wrap|Line Numbers
  1. Public Function bDisableBypassKey_Click()
  2.  
  3.     'This allows a programmer to set the password via a button while accessed in the program.
  4.  
  5.     Dim strInput As String
  6.     Dim strMsg As String
  7.  
  8.  
  9.     strMsg = "Do you want to enable the Bypass Key?" & vbCrLf & vbLf & _
  10.              "Please key the programmer's password to enable the Bypass Key."
  11.  
  12.     strInput = InputBox(Prompt:=strMsg, Title:="Disable Bypass Key Password")
  13.  
  14.     If strInput = "Password" Then
  15.  
  16.         SetProperties "AllowBypassKey", dbBoolean, True
  17.  
  18.         MsgBox "The Bypass Key has been enabled."
  19.  
  20.  
  21.     Else
  22.  
  23.         SetProperties "AllowBypassKey", dbBoolean, False
  24.  
  25.         MsgBox "If you dont know the password you probably shouldnt be here!", vbExclamation, "!WRONG!"
  26.  
  27. End If
  28. End Function
  29.  
Thanks in advance for any help.
No Can Do. You'll have to build a pop-up form and use the format option for a textbox "password".
J
Sep 13 '07 #2

ADezii
Expert 5K+
P: 8,669
How do i get the ****** to appear insted of text when it is an inputbox? and not a box inside a form. here is the code i am using

Expand|Select|Wrap|Line Numbers
  1. Public Function bDisableBypassKey_Click()
  2.  
  3.     'This allows a programmer to set the password via a button while accessed in the program.
  4.  
  5.     Dim strInput As String
  6.     Dim strMsg As String
  7.  
  8.  
  9.     strMsg = "Do you want to enable the Bypass Key?" & vbCrLf & vbLf & _
  10.              "Please key the programmer's password to enable the Bypass Key."
  11.  
  12.     strInput = InputBox(Prompt:=strMsg, Title:="Disable Bypass Key Password")
  13.  
  14.     If strInput = "Password" Then
  15.  
  16.         SetProperties "AllowBypassKey", dbBoolean, True
  17.  
  18.         MsgBox "The Bypass Key has been enabled."
  19.  
  20.  
  21.     Else
  22.  
  23.         SetProperties "AllowBypassKey", dbBoolean, False
  24.  
  25.         MsgBox "If you dont know the password you probably shouldnt be here!", vbExclamation, "!WRONG!"
  26.  
  27. End If
  28. End Function
  29.  
Thanks in advance for any help.
Short of accessing the API, I'm pretty sure that what you are requesting cannot be done - you cannot Mask characters within the context of an Input Box.
Sep 13 '07 #3

P: 74
Short of accessing the API, I'm pretty sure that what you are requesting cannot be done - you cannot Mask characters within the context of an Input Box.
Of the topic what is an API?
Sep 13 '07 #4

ADezii
Expert 5K+
P: 8,669
Of the topic what is an API?
Application Programming Interface. I'm not trying to be funny, but if you have to ask what it is, it's not something that you should try.
Sep 13 '07 #5

P: 74
Application Programming Interface. I'm not trying to be funny, but if you have to ask what it is, it's not something that you should try.
No offense taken i'm still learning.
Sep 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.