Between Dates

mithani

Registered User.
Local time
Tomorrow, 09:50
Joined
May 11, 2007
Messages
291
Hi friends,

The following is not showing the exact dates in report.

Code:
DoCmd.OpenReport "Purchase Report", acViewPreview, , "([InvoiceDate] Between #" & Me.OSTARTDATE & "# And #" & Me.OENDDATE & "#)"

Any help?

thanks

Mithani
 
Mithani,

Not much info to go on.

Are your form dates short dates?

Do your InvoiceDate fields have a time component.

If so; 8/9/2007 02:45:00 PM is not between 8/1/2007 and 8/9/2007.

need more info,
Wayne
 
Sorry Wayne,

Yes are short dates but no time. I think date format seems a problem. How can I set British date format (dd/mm/yyyy)

thanks

mithani
 
Mithani,

Glad to point you in the right direction.

See ya,
Wayne
 

Users who are viewing this thread

Back
Top Bottom