Can not print all dates unles I use last year

J

Jason

I have:
Datefrom = nz(datefrom(Dmin("DateFld","table"))
stfilter = "DateFld <=#" & datefrom & "#"
docmd.openreport "List",acpreview,stfilter

But All I get is 18th Oct 2008, not 11th oct 2008 unless I enter 11th Oct
2007 as the datefrom. 11th oct 2008 is what the datefrom line picks up and
is the minimum value.

Thanks,
J.
 
J

Jason

To get around this problem I am using:
stfilter = "clng(TaskDate) >= " & CLng(FromDate)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top