Disable changes

G

Guest

Hello,

I have been asked to display all the record on form(single form) but only
allow editing on the latest entry, the rest are for reference only.

I tried using the following code in the form's current event:
If me.currentRecord>1 then
me.form.allowedits=false
Else
me.form.allowedits=false
End if

The problem being that it still allows the double-click and click event,
which in turn permit edits.

What approach would lock down the record completly but still display the
data for reference purposes?

Thank you,

Daniel
 
J

Jeff Boyce

Daniel

I could imagine one approach that would display all but the most recent (?is
this your definition of "latest") record in a listbox or a subform that was
locked, and the "current" record in the main form, unlocked.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

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