Record Locking

J

jeffrey

I have a database that many users enter data into -
however, I want to be able to prevent users from entering
data into certain records after a time. Any suggestions
on how to make certain records editable and other not-
editable?

Thanks.
 
A

AndyB

Obviously you need a flag or a datestamp of some kind to
decide whether the record is editable.
Then you have several options:
You can set the allowedits property of the form using the
onCurrent procedure using and If Then Else structure.
me.allowEdits = false
Alternatively you could loop through all the controls on
your form and lock each one individually using the same
If Then Structure as above OnCurrent

dim ctl as Control
for each ctl in me.controls
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top