User provided date in Query

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hi

I have a couple of questions. I use a database which has
date information in it and I want to find everything (task
related) that will be due any period in the next 2 months
so under the field TargetDate, I put the expression:

<=Date()+60

that works fine. So I thought I could prompt someone to
provide the date they wanted to use instead of the system
date and tried the expression:

<=DateToFind + 60

I am prompted for the date and enter it using the format
dd/mm/yyyy but I always get an error saying that the
expression is too complex.

Any idea what's going on and why it won't work?

Thanks in advance for any assistance.

Peter
 
Try
<=Cdate(DateToFind) + 60

Hope This Helps
Gerald Stanley MCSD
 

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

Back
Top