R
Robert T
I recently noticed 1 of our users was changing old records on a form, which
isn’t acceptable. I’m not sure if he was doing it deliberately or by
accident, however, I decided to add the following code to the form’s OnLoad
event.
Me.AllowEdits = FALSE
That ensures no one will inadvertently edit an old record. I also placed a
button on the form that converts Me.AllowEdits back to True so users who need
to edit an old record can do it.
All of the above works fine. The problem is a Combo Box that looks up
records on the form. It will NOT work unless the user clicks on the
aforementioned button that turns Me.AllowEdits back to true.
Obviously that isn’t acceptable, so I placed the following line in the
OnClick event of the Combo Box but it does NOT work. I’m mystified.
Me.AllowEdits = True
What am I doing wrong?
Thanks,
Robert
isn’t acceptable. I’m not sure if he was doing it deliberately or by
accident, however, I decided to add the following code to the form’s OnLoad
event.
Me.AllowEdits = FALSE
That ensures no one will inadvertently edit an old record. I also placed a
button on the form that converts Me.AllowEdits back to True so users who need
to edit an old record can do it.
All of the above works fine. The problem is a Combo Box that looks up
records on the form. It will NOT work unless the user clicks on the
aforementioned button that turns Me.AllowEdits back to true.
Obviously that isn’t acceptable, so I placed the following line in the
OnClick event of the Combo Box but it does NOT work. I’m mystified.
Me.AllowEdits = True
What am I doing wrong?
Thanks,
Robert