Dear All , here is a simple and great solutions
first make an unbound form
then two buttons , name of them lock and another unlock
behind the lock one put this code
CurrentProject.Properties.Add "AllowBypassKey", False
and behind the unlock put this code
CurrentProject.Properties.Add "AllowBypassKey", True
Important: you should have unlock button so you can have a way to get out of it back , DONT LOCK YOURSELF ever....
cheers
Aliffi
farzamaliffi@msn.com
first make an unbound form
then two buttons , name of them lock and another unlock
behind the lock one put this code
CurrentProject.Properties.Add "AllowBypassKey", False
and behind the unlock put this code
CurrentProject.Properties.Add "AllowBypassKey", True
Important: you should have unlock button so you can have a way to get out of it back , DONT LOCK YOURSELF ever....
cheers
Aliffi
farzamaliffi@msn.com