Access Date Time Query

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Access Date Time Query

    I am having some trouble with a query for Date Time in Access. I assume it is
    because the Access formatted date is Date/Time with stored data that looks like
    this: >>>> 1/1/05 7:06:39 PM <<<< I need to do 2 things - search by date - Jan
    1, 05 and Time after 6pm... I am first trying to just pull date... But no
    luck... select * from table where create_date = Jan 1, 2005 --> Have tried
    01/01/05 and others... But I get no results... I know the data is there for
    that date - because the data is stored as 1/1/05 7:06:39 PM Haven't started on
    searching the time yet... Need some ideas on a fix... Thanx...

    Merle_Hanson Guest

  2. Similar Questions and Discussions

    1. Query Access Via Date Ranges
      Hey, crew... Just trying to figure out the best way to perform queries based on certain date ranges Example: Let's say I want to pull all...
    2. Date/Time format with MS Access & CF
      Does anyone know of any workarounds regarding date/time format between MS Access and ColdFusion? Right now I have to set a column in my Access...
    3. Saving current date and time in ASP and ACCESS
      Hi all, Im developing a simple web page and Im new to ASP. I want to save the current date and time in my MS ACCESS table I have a field in...
    4. MS Access time and date problem
      As the topic summary says, I am having trouble inserting both time and dates into a MS Access database. My database has three fields, eventdate,...
    5. MS Access + date query
      Hi I have got access table with two date/time field namely field1 and field2. I made one html form that inputs two dates (it's not mandatory...
  3. #2

    Default Re: Access Date Time Query

    I believe you may be after something like the following

    select * from table
    where create_date > #CreateODBCDateTime(CreateDateTime(2005, 1, 1, 18, 00, 00))#

    Ken
    The ScareCrow Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139