G
Guest
I have set the Allowediting to false for a certian condition, and this works fine. Now I have gone and added some buttons to enable filter by selection or disable filter by selection, it is here where the conflict occurs. If say, the record you are in fits the condition lock the form editing and you turn on the filter by selection, it causes the form to stay locked, "allowediting" even though the condition is met to allowediting. The condition is being checked from "current event". Any idea's. Code in this area looks like the following
if me.control.value = "yes" the
me.allowediting = fals
me.subform.form.allowediting = fals
els
me.allowediting = tru
me.subform.form.allowediting = tru
end i
if me.control.value = "yes" the
me.allowediting = fals
me.subform.form.allowediting = fals
els
me.allowediting = tru
me.subform.form.allowediting = tru
end i