Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

Trying to allow edit on a subform from a command button on the main form

I'm trying to allow edit on a sub-form from a command button on the main for with the following code.  But it isn't working.

Forms!subfrmWorkOrderDetail.Form.AllowEdits = True

Can someone tell me what is wrong with the code?  When I click the command button I get an error...  Runtime error 2450.  Can't find the referenced form.

--Steve
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteveL13

ASKER

Extremely informative.  Thank you very much!