Protecting records

P

pack

I have a table that is updated monthly, in a multi user
environment. Oftem times someone inadvertently changes
the prior month's data while entering/editing the current
months data.

Is there a way that I can lock/protect prior months
records, so that they can not be edited inadvertantly?

Thanks
 
S

Scott McDaniel

You could base your form on a query that shows ONLY the current month's
records:

SELECT * FROM YourTAble WHERE YourDate>=#" & DatePart("mm", Now()) & "-01-"
& DatePart("yyyy",Now()) & "#"

Note the above is aircode, so you may have some typos ...

Set your form's Recordsource to something similar, and your users will only
see the records for the current month and year.

Of course, if your users are entering data directly in the tables, then all
bets are off and you're just begging for trouble <grin>
 

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