Aine,
If you are just trying to prevent people from making accidental changes, you
can implement a very rudimentary security feature relatively easily.
In several of my databases, I include a Users table, which includes a
UserID, AllowEdits, and several other fields. AllowEdits is a True/False
field that is by default set to False.
When the user opens the Splash form, the Open event checks the logon using
the WindowsAPI call (
http://www.mvps.org/access/api/api0008.htm) and tests to
see whether that UserID already exists in the Users table (if not, it adds
it). It then checks the value of the AllowEdits field in the Users table and
sets the value of a function (fnAllowEdits) to True or False. Then, in the
open event of each successive form, I set the AllowEdits property based on
the value of this function.
This will obviously not prevent someone from sitting down at a computer that
is already logged into the application, but neither will user level security.
Public Function fnAllowEdits(Optional TrueOrFalse as variant = Null) as
Boolean
Static myAllowEdits as Boolean
if not isnull(TrueOrFalse) then myAllowEdits = TrueOrFalse
fnAllowEdits = myAllowEdits
End Function
HTH
Dale