El Rebelde
Registered User.
- Local time
- Today, 10:26
- Joined
- Nov 10, 2006
- Messages
- 12
I need to select multiple records from a listbox which is designed to look like a datasheet. I will use the selected records to select records with matching dates in another recordset.
A sample selection results in the following SQL statement, as seen the immediate window:
SELECT * FROM WorkRecord WHERE WorkRecord.Recorddate IN(#29/11/2013#,#02/12/13#,#03/12/2013#);
These are UK dates (29th November, 2nd and 3rd December) My problem is that this is interpreted by Access as:
SELECT *
FROM WorkRecord
WHERE (((WorkRecord.Recorddate) In (#11/29/2013#,#2/12/2013#,#3/12/2013#)));
So, only the records from November are correct.
Can anyone suggest the best way to ensure consistency, please?
A sample selection results in the following SQL statement, as seen the immediate window:
SELECT * FROM WorkRecord WHERE WorkRecord.Recorddate IN(#29/11/2013#,#02/12/13#,#03/12/2013#);
These are UK dates (29th November, 2nd and 3rd December) My problem is that this is interpreted by Access as:
SELECT *
FROM WorkRecord
WHERE (((WorkRecord.Recorddate) In (#11/29/2013#,#2/12/2013#,#3/12/2013#)));
So, only the records from November are correct.
Can anyone suggest the best way to ensure consistency, please?