Hi Guys,
I posted a message a few days ago regarding how to lock a particular record.
I received couple of replies but unfortunately it didn't really resolve my query.
I have a form linked to a table called "LiveEmployees". There are thousands of records which are updated (automatically and by users) on a regular basis. However, when an employee leaves etc, we need to lock that particular record so that the information stays as it is and no one can edit it!
I have read alot of information regarding this on various websites, MS Access help and on these posts. They all provide info on locking 'fields' or locking all records, which i can do. But what i want is to be able to lock only a particular record (e.g. lock only record '11' and record '35' from 150 records) rather than lock all the records.
Hope this makes sense!
I think the best way would be to create a command button (or a tick box etc) and write some code in VBA to achieve this. I’ve tried myself but am not getting anywhere!
Let me know if you have any queries.
I would really appreciate it if anyone could help/guide/advice me on this plz.
Thanks,
Regards,
Amber
I posted a message a few days ago regarding how to lock a particular record.
I received couple of replies but unfortunately it didn't really resolve my query.
I have a form linked to a table called "LiveEmployees". There are thousands of records which are updated (automatically and by users) on a regular basis. However, when an employee leaves etc, we need to lock that particular record so that the information stays as it is and no one can edit it!
I have read alot of information regarding this on various websites, MS Access help and on these posts. They all provide info on locking 'fields' or locking all records, which i can do. But what i want is to be able to lock only a particular record (e.g. lock only record '11' and record '35' from 150 records) rather than lock all the records.
Hope this makes sense!
I think the best way would be to create a command button (or a tick box etc) and write some code in VBA to achieve this. I’ve tried myself but am not getting anywhere!
Let me know if you have any queries.
I would really appreciate it if anyone could help/guide/advice me on this plz.
Thanks,
Regards,
Amber