View Full Version : editing subform from a main form in read only


grayth
06-08-2001, 06:06 PM
I'm trying to figure out a way to allow my self to edit and enter data on a sub form while the main form has me.allow= false.

Anyone have any ideas?

Matthew Snook
06-11-2001, 01:01 PM
You could use the gotfocus and lostfocus events of the subform to temporarily allow editing. Edits would be allowed everywhere, but only while focus is within the subform, hopefully within any field in the subform. The user would not be aware that editing is allowed in the main form, because as soon as they exit the subform for any part of the main form, you'd use the Me!allow=false to prevent editing again.

I didn't try this, but it might work.

Matt