Something like:
form with 2 text boxes and a command button, behind the button is this-
******************************************************
rs.recordsource = "SELECT user, pass FROM table WHERE user='" & txtuser.text & "'"
rs.refresh
if rs.recordcount = 0 then
'there are no users of that name
msgbox "Incorrect login", "Error"
txtuser.text = ""
txtpass.text = ""
txtuser.setfocus
else
'there is a record
if txtpass.text = rs("pass"

then
'correct password
me.hide
'enter the application
else
'incorrect password
msgbox "Incorrect Password", "Error"
txtpass.text= ""
txtpass.setfocus
end if
end if
rs.close
'mi casa es su casa'
]-=tty0=-[
ICQ:82621399