One approach might be to wrap a FORMAT function around your field names to force them into the SQL in the order it wants. I don't know if this is the problem, but it wouldn't hurt to try. Ray _____________ This email is from Ray Blake, Head of Software Design, GR Business Process Solutions. It is confidential and intended for the addressee only. The contents are private and may be legally privileged. If you receive this email in error we would be grateful if you would advise the sender and delete the email from your system. For more information on the services that we offer please visit us at our website: - www.grbps.com -----Original Message----- From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Green Sent: 10 January 2004 14:20 To: MSO Subject: [mso] Nasty date Hi everyone, I'm really upset! I know it's silly to be but after spending half a day trying to find out why a report isn't giving me any output at all it's just so frustrating to find it could be something pretty simple! I have a table with Date and Time columns in date/time format. I'm succesfully storing the date as dd/mm/yy. I want to use a date and time from that table to base a report on where I print only the last so many records. To do this I'm trying to set the recordsource of the report to an sql statement... "Select * from tblStatus where " _ & " fDate >= #" & dlDate & "#" _ & " AND fTime >= #" & dlTime & "#;" I know there is data there because I've just set dlDate and dlTime to values from the same table. ..But.. The report is blank! :-( I've tracked the problem.. I think.. to the date format. The short date format for the computer is set to dd/mm/yy but it looks as thought sql is expecting mm/dd/yy. Is it possible that anyone knows what's happening here please? Does sql expect a certain date format? Regards Lisa ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************