Date parameter question

  • Thread starter Thread starter pat67
  • Start date Start date
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?
 
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.
 
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
 
Back
Top