Access Call Macro from Query (Opening a Form) Run-time error '2486': You can't carry out this action at the present time
问题 I have an Access Query that requiers a value to be set in a combo-box within a form in order to work Criteria: Forms![_SelectCustomer]![CmbSelectCustomer] So far so good, however, I would like the query to open, read and close this form programatically when it is run using a macro. I have been following @David-W-Fenton's answer in THIS similar stack overflow question and have come up with the following code: Public Function rtnSelectCustomer() As Variant DoCmd.OpenForm "_SelectCustomer", , ,