B
BillS
I am having trouble using the RunSQL command. I am receiving, " A RunSQL
action requires an argument consisting of an SQL statement". The statement is
very simple and works in the query builder but not in code.
DoCmd.RunSQL "SELECT tblChecks.strCkNum, tblChecks.strPayee FROM tblChecks"
I have also tried:
Dim sql As String
sql = "SELECT tblChecks.strCkNum, tblChecks.strPayee FROM tblChecks"
DoCmd.RundSQL sql
What am I doing wrong?
action requires an argument consisting of an SQL statement". The statement is
very simple and works in the query builder but not in code.
DoCmd.RunSQL "SELECT tblChecks.strCkNum, tblChecks.strPayee FROM tblChecks"
I have also tried:
Dim sql As String
sql = "SELECT tblChecks.strCkNum, tblChecks.strPayee FROM tblChecks"
DoCmd.RundSQL sql
What am I doing wrong?