ms-access


Selecting data from the start of every hour


I have an MS Access database table that populates every minute, and I need to write a query to select the data at the start of every hour. Does anyone how I would go about writing such a query?
BOF_TOTAL EAF_TOTAL EAF BOF TO_CHAR(DATETIME,'MM/DD/YYYYHH24:MI:SS')
.
.
.
.
315499 38756 5.6 12 7/1/2011 16:00
315511 38762 5.6 12 7/1/2011 16:01
315523 38771 5.6 12 7/1/2011 16:02
315535 38779 8.4 12 7/1/2011 16:03
315547 38787 8.4 12 7/1/2011 16:04
315559 38787 8.4 12 7/1/2011 16:05
315571 38797 8.4 12 7/1/2011 16:06
315583 38805 8.4 12 7/1/2011 16:07
.
.
.
316219 39596 6.7 12 7/1/2011 17:00
.
.
.
316939 40436 6.9 12 7/1/2011 18:00
I would like a query that will that grab only the data at 16:00, 17:00, 18:00, etc.
So the output of the query is:
315499 38756 5.6 12 7/1/2011 16:00
316219 39596 6.7 12 7/1/2011 17:00
316939 40436 6.9 12 7/1/2011 18:00
I hope that this helps to better clarify my question.
Getting the date from the elapsed hour ?
WHERE MyTime between int(Now())-1/24 And int(Now())
should do it. Change Now() into Now if you're in VBA.

Related Links

Help Debugging this Code to Convert for .adp file type
Does Jet/ACE use indexes with a LIKE BeginsWith query?
Printing parameters in an Access parameter query
How do you set the required property when adding a column in Access using ADOX?
Export From Access to Excel
access 2010 - parameters button is disabled
Several If Statements in an access 2007 vba subroutine. Curious if there is another way?
reliable way of overwriting access database on live website
How to specify page width and length for printed (or html) report?
How to bind the contents of a combo box to the value of another
Access VBA: DLookUp function giving type mismatch error
Microsoft Access - If Null then
How do i reference the value of a control in a rowsource query?
How to query number of attachments from Attachment field in Microsoft Access?
Problem adding a row into a typed dataset
Efficient use of calculations in MS Access

Categories

HOME
maven
twitter
wso2
vbscript
atom-editor
keycloak
push-notification
filtering
yarn
jxls
fsm
mvvmcross
upload
cloudkit
numeral.js
remote-access
ups
worldwind
progressive-web-apps
aurigma
reactcsstransitiongroup
solaris-10
normalizr
oxyplot
web-sql
sylius
accessor
excel-2007
wijmo
xpages-ssjs
internet-explorer-9
ejabberd-module
msys2
junit5
contact-form
winrt-xaml-toolkit
accelerate-framework
suricata
main
x11-forwarding
espeak
sqlite2
gulp-sourcemaps
grid.mvc
segment
komodoedit
theming
rails-routing
worksheet
blogengine.net
dropbox-php
sqlclient
nodebb
nsarray
sqlbulkcopy
gcsfuse
spring-mongodb
hittest
blacklist
specrun
firmata
libpng
adxstudio-portals
phishing
py2app
transmitfile
impresspages
essence
django-unittest
kcachegrind
tarjans-algorithm
ibaction
jsapi
ng-animate
xc16
applescript-objc
resty-gwt
typo3-neos
openlaszlo
cdc
web2py-modules
opcache
padarn
yui-compressor
seed
ember-app-kit
type-equivalence
typoscript2
mhtml
hamiltonian-cycle
twrequest
parametric-equations
ticoredatasync
online-compilation
wse3.0
postgresql-performance
jquery-ui-layout
semantic-diff
nsdatecomponents
spyware
zpt
genshi
invite
propagation
imac
radcombobox
asp.net-mvc-areas
bespin
multi-tier
substrings
data-acquisition

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App