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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -