[mso] Nasty date

  • From: "Green" <1z@xxxxxxxxxxxxxx>
  • To: "MSO" <mso@xxxxxxxxxxxxx>
  • Date: Sat, 10 Jan 2004 15:19:52 +0100

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
*************************************************************

Other related posts:

  • » [mso] Nasty date