G
Guest
I'm having a problem. I have a set of Append Queries that I need to run, or
initiate through VBA. This will be attached to the Click event on a command
button on my form.
I tried adding DoCmd.RunSQL but the SQL text contains quotes. "my criteria
here". The sqlText As String requires "beginning and ending quotes" and my
"criteria quotes" generate a compile error.
Then I tried DoCmd.RunMacro. I set up a Macro and the RunSQL Action but
the SQL Statement is longer than the Macro will allow.
The two ways I know of to run my Action query are not working for different
reasons.
I wasn't sure if using OpenQuery in a Macro would work? Is there another
way to run my Action Query with VBA? Thanks.
initiate through VBA. This will be attached to the Click event on a command
button on my form.
I tried adding DoCmd.RunSQL but the SQL text contains quotes. "my criteria
here". The sqlText As String requires "beginning and ending quotes" and my
"criteria quotes" generate a compile error.
Then I tried DoCmd.RunMacro. I set up a Macro and the RunSQL Action but
the SQL Statement is longer than the Macro will allow.
The two ways I know of to run my Action query are not working for different
reasons.
I wasn't sure if using OpenQuery in a Macro would work? Is there another
way to run my Action Query with VBA? Thanks.