Avatar of SteveL13
SteveL13
Flag 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
Microsoft Access

Avatar of undefined
Last Comment
SteveL13

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PatHartman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SteveL13

ASKER
Extremely informative.  Thank you very much!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23