K
Kay
Hi
I use SQLServer2000 and MS Access2000
I have the below SQL query which will not work as a Access PassThrough
Query, I get the error message "Pass-Through query with ReturnsRecords
property set to True did not return any records
I have tried replacing the @COB with a date string but the pas through
query
hangs forever.
Can anyone direct me the right way?
Thanks
Kay
DECLARE @cob smalldatetime
SELECT @cob = '20060616'
SELECT field1,
field2,
field3,
@cob as report_date
FROM table1
WHERE business_date = @cob
AND field1 in (
SELECT field1
FROM table1
WHERE business_date = @cob
AND field9 = 'N'
AND field10 <> -1
GROUP BY field1)
GROUP BY field1,field2,field3
I use SQLServer2000 and MS Access2000
I have the below SQL query which will not work as a Access PassThrough
Query, I get the error message "Pass-Through query with ReturnsRecords
property set to True did not return any records
I have tried replacing the @COB with a date string but the pas through
query
hangs forever.
Can anyone direct me the right way?
Thanks
Kay
DECLARE @cob smalldatetime
SELECT @cob = '20060616'
SELECT field1,
field2,
field3,
@cob as report_date
FROM table1
WHERE business_date = @cob
AND field1 in (
SELECT field1
FROM table1
WHERE business_date = @cob
AND field9 = 'N'
AND field10 <> -1
GROUP BY field1)
GROUP BY field1,field2,field3