Disable changes

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top