Hi Bened
yes you could use vb for that,
attempt entering the p/w 3 times.
"password" and "thepassword" are data items you need to supply.
'form scope global
form declaration
dim myCounter as integer
in the forms onopen event add
myCounter = 2
you'll also need a button or something for the user to
acknowledge the password "entry"
add this to the "Entry" button on_click event.
dim aPassword as variant
dim testPassword as variant
'check p/w add your control names
testPassword = me."password"
aPassword = "thepassword"
if (StrComp(aPassword, testPassword ,0) = 0) then
' third argument 0 = case sensitive
' 1 = text match only
' what ever code to allow user to continue
' open main form etc.
else
msgbox "invalid password"
if myCounter = 0 then
Application.Quit
end if
myCounter = myCounter -1
end if
<something like that>
that should get you started

after you get going...you can add user name etc
make the form modal in the forms/other/modal->yes
and forms/format/borderstyle->dialog
and remove the "control box" and "close" options
this isn't nasa strength password checking...
the user can still access access!
see ya
RobertD