G
Guest
Hi
I am using access 2000, windows xp
have a form which has a text box (text35) which contains a date with short
date format. regional setting is dd/mm/yyyy.
i have a query in the form coding as follows:
SELECT * FROM AccountRecs WHERE GLCode = " & Nz(Me.Combo0, 0) & " AND [date]
= " & Format([Text35], "\#mm\/dd\/yyyy\#")
there are 3 records in the AccountRecs table with dates 09/07/2007,
10/07/2007 and 11/07/2007.
when text35 contains any of these dates the query has a record count of 3,
whereas it should only have 1
when i remove the 'GLCode = " & Nz(Me.Combo0, 0) & " AND' part it seems to
work, but i need to match both criteria
any thoughts much appreciated.
thanks
David
David Benjamin
I am using access 2000, windows xp
have a form which has a text box (text35) which contains a date with short
date format. regional setting is dd/mm/yyyy.
i have a query in the form coding as follows:
SELECT * FROM AccountRecs WHERE GLCode = " & Nz(Me.Combo0, 0) & " AND [date]
= " & Format([Text35], "\#mm\/dd\/yyyy\#")
there are 3 records in the AccountRecs table with dates 09/07/2007,
10/07/2007 and 11/07/2007.
when text35 contains any of these dates the query has a record count of 3,
whereas it should only have 1
when i remove the 'GLCode = " & Nz(Me.Combo0, 0) & " AND' part it seems to
work, but i need to match both criteria
any thoughts much appreciated.
thanks
David
David Benjamin