Results 1 to 10 of 10
  1. #1
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    Need to know who does not have a class between eg... 07:15 - 09:15

    :15Example of some times
    06:30 - 14:30
    0615 - 07:15
    07:15 - 09:15
    07:45 - 10:45


    12:15 - 14:15

    If I use the criteria <#07:15# or >#9:15#
    I end up with

    06:30 - 14:30
    12:15 - 14:15

    The 12:15 is great. This person does not have a class between 7:15 - 9:15
    However the 06:30 - 14:30 does not work because they are in a class at that time.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is the time data in date/time or text fields?

    Need full date/time value either in 24-hour time or AM/PM or convert to a number.

    Dates are actually stored as numbers in Access table.

    Review: http://support.microsoft.com/default...%2Dus%3B130514
    especially the last section concerned with comparing time data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    24 hour date/time 24 hour format

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    best format to use in scheduling text, numbers, or time

    I used the criteria for overlapping records. However, I also had already changed by format to numbers. I am still getting a record set that includes people are are in class at the given time. Is there a best format to use when doing scheduling.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would date/time. Your field isn't text now, is it?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    No it is date time and if i did everything right it did not work.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Are you just using the technique from the link? That lets you find people that have records for the time period. You'd do an unmatched query comparing that to a table with all people in it to find people who are available.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    You were correct I did not do unmatched. Problem solved thanks to you

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Initialization Module/Class
    By swalsh84 in forum Modules
    Replies: 1
    Last Post: 12-13-2014, 12:25 PM
  2. Managing a CPR class
    By DiPietro14 in forum General Chat
    Replies: 1
    Last Post: 02-06-2012, 06:02 PM
  3. wia video preview class not do'n much
    By byterbit in forum Programming
    Replies: 0
    Last Post: 10-31-2011, 08:43 PM
  4. Class Method
    By AndreT in forum Programming
    Replies: 3
    Last Post: 01-20-2011, 02:18 AM
  5. Class in Access
    By Huddle in forum Access
    Replies: 2
    Last Post: 07-15-2010, 04:08 PM

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