E
Effie
I have a bunch of union queries in my Access database in which I've written
the following type of SQL code:
SELECT [Field1]
FROM [Table1]
WHERE [Field2]=True
UNION SELECT [Field 3]
FROM [Table1]
WHERE [Field4]=True;
These queries work fine in MS Access, but when I try to pull these queries
into a program I'm using for statistical analysis (R and RODBC), I get the
following error message:
[RODBC] ERROR: Could not SQLExecDirect
07001-3010 [Microsoft] [ODBC Microsoft Access Driver] Too few parameters.
Expected 3.
I am totally a novice at SQL -- the SQL for union queries is about all I
know because Access has no point and click option. Can any of you tell me
whether there is there something fundamentally wrong with the SQL I've
written above?
Can any of you decipher this error message for me?
the following type of SQL code:
SELECT [Field1]
FROM [Table1]
WHERE [Field2]=True
UNION SELECT [Field 3]
FROM [Table1]
WHERE [Field4]=True;
These queries work fine in MS Access, but when I try to pull these queries
into a program I'm using for statistical analysis (R and RODBC), I get the
following error message:
[RODBC] ERROR: Could not SQLExecDirect
07001-3010 [Microsoft] [ODBC Microsoft Access Driver] Too few parameters.
Expected 3.
I am totally a novice at SQL -- the SQL for union queries is about all I
know because Access has no point and click option. Can any of you tell me
whether there is there something fundamentally wrong with the SQL I've
written above?
Can any of you decipher this error message for me?