Results 1 to 3 of 3
  1. #1
    raynman1972 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    31

    Pass-Through Query Appends Current Date to Time Column

    This is probably something silly, but I can't figure out how to fix this. I have a pass-through query that should only show time values in one of my columns and this holds up in MySQL Query Browser (ie: the text file export has only time values), but when running the same query in Access as a pass-through, I get today's date appended on the front of my time values.

    For example, '06:00:00' becomes '8/12/2012 6:00:00 AM'.



    This wouldn't be a huge deal, but I need to do less/greater than measurements on the time values and '06:00:00' does not equal '8/12/2012 6:00:00 AM'.

    How do I fix this?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    What does a Time only field mean exactly? Just curious when I consider 10:15 AM -- don't I want to know which day (Date) we're talking about? I'm just not understanding the context of a Time only field?

    The incoming text file must have some default or implied value to you and your program.

  3. #3
    raynman1972 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    31
    This is for worker schedules which persist week-over-week indefinitely until something is modified. So if John D. works 08:00-17:00 on Monday, this is true for every future instance of a Monday until there is a change- so date is not necessarily important. What I want to be able to do is measure the number of agents that start at 08:00 and I can't do this because Access is adding the current date in front of my time.

    To really break it down, I want to count the number of rows that are greater than or equal to 08:00 via VBA for hundreds of employees and I can see the issue of the date being a problem.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using Current Date in a Query
    By littlewing in forum Queries
    Replies: 6
    Last Post: 04-28-2012, 12:57 PM
  2. Replies: 8
    Last Post: 12-21-2011, 12:50 PM
  3. Query by time while suming another column
    By abodi in forum Queries
    Replies: 2
    Last Post: 09-28-2011, 07:56 PM
  4. query criteria for current date
    By Paul-NY in forum Queries
    Replies: 5
    Last Post: 07-05-2011, 02:21 PM
  5. VB coding to show current date n time in access form
    By cwwaicw311 in forum Programming
    Replies: 6
    Last Post: 02-10-2010, 09:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums