Date parameter question

P

pat67

I have a query that pulls data. What I am trying to get it to do is
pull the data greater than a specific date. Is there a way to do it
other than just entering the date in the criteria field in design mode?
 
J

John W. Vinson

I have a query that pulls data. What I am trying to get it to do is
pull the data greater than a specific date. Is there a way to do it
other than just entering the date in the criteria field in design mode?

Sure. How is "a certain date" to be established? Programmatically based on
today's date, by user input, from some other table, ...????

You could for instance use

to find all future records, or
= DateSerial(Year(Date()), 1, 1)

to find all records during the current year, or
= [Enter start date:]

to prompt the user for a date, or
[Forms]![SomeFormName]![UnboundTextboxName]

to find all records greater than a date value entered on a form.
 
P

pat67

I have a query that pulls data. What I am trying to get it to do is
pull the data greater than a specific date. Is there a way to do it
other than just entering the date in the criteria field in design mode?

Sure. How is "a certain date" to be established? Programmatically based on
today's date, by user input, from some other table, ...????

You could for instance use

to find all future records, or
= DateSerial(Year(Date()), 1, 1)

to find all records during the current year, or
= [Enter start date:]

to prompt the user for a date, or
[Forms]![SomeFormName]![UnboundTextboxName]

to find all records greater than a date value entered on a form.
--

             John W. Vinson [MVP]
Thanks

=[Enter Date] works perfectly
 

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