Date/Time Return all in Specified Date

S

Snickers

I have a table containing date/tame info as mm/dd/yyyy hh:nn:ss AMPM, I want
to put together a parameter query that prompts you for a date and returns all
records regardless of time as long as the date matches.
 
F

fredg

I have a table containing date/tame info as mm/dd/yyyy hh:nn:ss AMPM, I want
to put together a parameter query that prompts you for a date and returns all
records regardless of time as long as the date matches.

So you do not need the time value in either the starting or ending
days?

Create a new query that returns all of the records.
Then as criteria on the Date/Time field, write:

Between [Enter Start Date] and DateAdd("d",1,[Enter End Date])

When prompted enter the [Start Date] as
10/2/2008
When prompted again, enter the End date as 10/7/2008

All records between the entered dates, regardless of time, will be
returned.

If you don't need the time value why are you storing it?
 
S

Snickers

Thanks, It's a company database, not mine exclusively.

fredg said:
I have a table containing date/tame info as mm/dd/yyyy hh:nn:ss AMPM, I want
to put together a parameter query that prompts you for a date and returns all
records regardless of time as long as the date matches.

So you do not need the time value in either the starting or ending
days?

Create a new query that returns all of the records.
Then as criteria on the Date/Time field, write:

Between [Enter Start Date] and DateAdd("d",1,[Enter End Date])

When prompted enter the [Start Date] as
10/2/2008
When prompted again, enter the End date as 10/7/2008

All records between the entered dates, regardless of time, will be
returned.

If you don't need the time value why are you storing it?
 

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

Similar Threads


Top