Results 1 to 2 of 2
  1. #1
    k3ll1n is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    3

    Question Hiding cbo items if date = today and time > 12:00 PM (?)

    Was hoping someone would be able to point me in the right direction regarding this.


    I'm creating a scheduler and would like to know how to remove the cbo items depending on the time of day.

    On the form I have;

    txt_appointment_date
    (text box, date picker)

    cbo_appointment_time
    (drop down combo box that pulls all available appointment times from query: qry_available_appointments)

    I would like to hide all cbo items if the date from the text box txt_appointment_date is TODAY and > 12:00 PM. Meaning they would have to pick tomorrows date for the items to return in the combo box. Employees have until 12 PM to book for the 2 PM - 4 PM openings.

    Hope this makes sense.
    Any help is appreciated.

    Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    In general terms, you'd set the row source property of the combo. Hard to be specific not knowing your table structure.
    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. Replies: 1
    Last Post: 11-26-2013, 09:25 AM
  2. Replies: 5
    Last Post: 10-12-2012, 11:00 AM
  3. Replies: 12
    Last Post: 04-26-2012, 04:01 AM
  4. Replies: 4
    Last Post: 03-23-2012, 01:18 PM
  5. Automatically enter today's date when entering time
    By Szabi in forum Database Design
    Replies: 5
    Last Post: 03-16-2012, 03:50 AM

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