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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dlookup funcion 1

Status
Not open for further replies.

shy216

Programmer
Jul 21, 2005
142
US
Private Sub password_AfterUpdate()

=DLookUp("[password]","tblpasswordMonitor","[password]=forms!frm_pwMonitor![password]")

End Sub

trying to set up a quick pw filter and open if it's true..
what am i missing?
 
Something like this ?
Private Sub password_AfterUpdate()
If Me!password = DLookUp("[password]", "tblpasswordMonitor", "[password]='" & Me!password & "'") Then
' your open stuff here
Else
MsgBox "Invalid password"
End If
End Sub

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top