473,383 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Setting the ***** password in a inputbox

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
5 11508
JConsulting
603 Expert 512MB
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
8,834 Expert 8TB
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
Hutch
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
8,834 Expert 8TB
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
Hutch
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

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.