application to quit after three invalid password enteries, please help (1 Viewer)

thunder

Just Want To Know More
Local time
Today, 06:01
Joined
Feb 28, 2009
Messages
26
hi experts
i now use this code

private sub login_click()
username.setfocus
if isnull (username) then
msgbox "please enter username",vbcritical,"username is missing"
elseif isnull (password) or password = "" then
msgbox "please enter password",vbcritical,"password missing"
end if
if username = "test1" and password = "test1" then
msgbox "access granted", vbinformation,"WelCome"
docmd.close
docmd.openform "splash screen"
end if
end sub
 

khawar

AWF VIP
Local time
Today, 17:01
Joined
Oct 28, 2006
Messages
870
Download the attached sample
 

Attachments

  • LoginSample.zip
    16.6 KB · Views: 127

thunder

Just Want To Know More
Local time
Today, 06:01
Joined
Feb 28, 2009
Messages
26
thank you thank you thank you
 

Users who are viewing this thread

Top Bottom