protected form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form protected with a button to unprotect.also i have some fields
which must not be blank (cant go to the next field without filling it)

now , when i want to add new record, sometimes I go directly to the field
"Patient" which is one of the above mentioned fields.I try to add name ,it
want add because form is still protected.when i go the the uprotect button to
remove protection, i will get this message "patient name should not be blank"
which is set to the exit event of the "patient field". i am using
allenbrowne's Lockboundcontrols to lock/unlock form. any help with this?
 
It sounds like you have already dirtied the record in some way, and so it is
trying to save the incomplete record, which does not save.

Given that the controls are locked, it is probably being dirtied
programmatically. Start with the Current event of the form, and see if you
have anything in that event that is assigning a value to a bound control.
(There *never* any justification for assigning a value to a bound control
just because you visited a record.)

As a workaround, you might be able to press the Esc key twice to undo record
that has been started, but finding the culprit is the genuine solution.
 
Back
Top