Link to home
Start Free TrialLog in
Avatar of dpalyca
dpalyca

asked on

ACCESS. openform action cancelled

I am getting an runtime error upon executing this code:
runtime error '2501'  The openform action was canceled.
This code worked initially so I am unsure what to think now.
Here is the code:
stLinkCriteria = "[productID]= '" & Me![Text27] & "' And [draft] = " & Me![draft]
stDocName = "frmwhy?"
DoCmd.OpenForm stDocName, , , stLinkCriteria
stDocName2 = "updatebuildrequest2"
DoCmd.OpenQuery stDocName2, acNormal, acEdit
DoCmd.Close acForm, "frmbuildrequestqueue"

The debugger mode shows the linkcriteria executed correctly.
ASKER CERTIFIED SOLUTION
Avatar of jadedata
jadedata
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