editing subform from a main form in read only

grayth

Registered User.
Local time
Today, 23:59
Joined
May 24, 2001
Messages
11
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?
 
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
 

Users who are viewing this thread

Back
Top Bottom