sql - Access (ADO) query between two hour ranges -



sql - Access (ADO) query between two hour ranges -

using vb query access .mdb database via adodb.

my date column holds both date , time, to build query ignore date, , refer time in column, in such way, enable me homecoming records have time in between range given user, ignoring date.

i tried selecting between numbers, believe access i'm doing wrong

...where [date_time_of_birth] between #04:00:00# , #06:00:00#

just doesn't work intended ... need direction here.

use timevalue function ignore date portion of date_time_of_birth values.

also #04:00:00# , #06:00:00# 4 , 6 am. since want pm times, write values in 1 of these examples:

class="lang-sql prettyprint-override">where timevalue([date_time_of_birth]) between #16:00:00# , #18:00:00# timevalue([date_time_of_birth]) between #4 pm# , #6 pm#

sql ms-access adodb

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -