Hi,
The SQL that produce error:
SELECT Id, 'Course Fee(December-2007)' as Expr1, Class, Amt, Gst, Inv, Pay,
12 as Expr2, 2007 as Expr3, #01-Dec-07# as Expr4 FROM Get_Fee WHERE Inv = 2
AND Pay Not In (SELECT DISTINCT InvPay FROM Invoice) AND Sdate <= #01-Dec-07#
AND Edate >= #01-Dec-07#
An error message saying "No current record is found". will appear base on the
number of record i have.
The Id and Amt field will show #error while the rest of the field will show
the correct data
The SQL that does not produce error
SELECT Id, Id, 'Course Fee(December-2007)' as Expr1, Class, Amt, Amt, Gst,
Inv, Pay, 12 as Expr2, 2007 as Expr3, #01-Dec-07# as Expr4 FROM Get_Fee WHERE
Inv = 2 AND Pay Not In (SELECT DISTINCT InvPay FROM Invoice) AND Sdate <= #01-
Dec-07# AND Edate >= #01-Dec-07#
No error message appears after i had add an extra Id and Amt field. All
records is shown.
Jerry said:
There's only one practical way for us to know: Show us the SQL. Open the
query in design view. Next go to View, SQL View and copy and past it here. Do
this for both the query that works and doesn't work. Also mention which
fields produce the error message. Maybe some sample data would be nice too.
[quoted text clipped - 3 lines]
Do anyone know what actually happens?