OpenReport filter only working with American date format

Mark Wild

Registered User.
Local time
Today, 13:49
Joined
Apr 9, 2003
Messages
126
I have a report that picks up a date from a textbox and uses this date as its filter. However, it will only bring through the data is I turn the date into the American format of mm/dd/yy

Everything in the system to the best of my knowledge is in the UK style of date.

Can anyone advise on why I'm getting this problem and if there is a work around. I've added the line as it should be at how I can get it to work

Code:
DoCmd.OpenReport "RptLoanActivity", acViewPreview, , "((MaturityDate) = #04/18/04#)"

'"((MaturityDate) = #" & me.tbMaturityDate & "#)"

Thanks
 
Cheers. Such a simple solution...
 

Users who are viewing this thread

Back
Top Bottom