Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input boxes

Status
Not open for further replies.

legendv

Technical User
Apr 10, 2002
32
0
0
US
On the doubleclick event I have an input box that asks for a password.

I want the form to open if inputbox = txtPassword and cancel if it doesn't.

I can't seem to "call" the inputbox string.

In the Open event looks something similar...

if txtpassword.text = inputbox.text then
'do nothing
else
docmd.close
form_frmMainMenu.visible = true
endif

How do you "call"/"recall" the inputbox's string that was entered?
 
Try this:

cPassWord=Inputbox("Enter Password")

if txtpassword.text = cPassword then ' password OK
docmd.close
form_frmMainMenu.visible = true
else ' password wrong
'do nothing
endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top