Query a Time Range

RichFost

New Member
Joined
May 13, 2004
Messages
26
I have a data table in Access97 which records, amongst many other items, the date and time that a line of data was entered.

I want to be able to run a query where I can select records entered between two specific dates and two specific time ranges.

I've tried using: >=[Record Start] And <[Record End] for both the date and time fields but this only seems to select the specific date, and ignores the time range i've entered.

Can anyone help ?

Thanks. :rolleyes:
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Are the time/date in the same field or are they seperate?
 
Upvote 0
I use

Between [Record Start] and [Record End]

to select date ranges. It should work with time ranges as well.

HTH
Cal
 
Upvote 0
Hi,

The time and date data is in the same table but in different fields.

I've tried the Between command, but it wouldn't work for the time field. :oops:
 
Upvote 0

Forum statistics

Threads
1,221,827
Messages
6,162,200
Members
451,753
Latest member
freddocp

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top