Results 1 to 2 of 2
  1. #1
    Mutant_Mike is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Posts
    1

    Sorting Data in a Combo Box

    Ok I am sure this questions has been asked a million times, so I apologize and ask if you could just point me in the right direction. The keywords I am using for my searching dont seem to be bringing up anything useful.



    Ok, On he other hand if this is a new topic here is my problem and questions.

    I am creating a database to track and schedule task for a group of techs on a day to day basis. Techs has to be assigned to tasks at various time of the day.

    So I have a form linked to a table that allows me to enter the following data

    Task (Text Format)
    Start Date (Date/Time Format)
    End Date (Date/Time Format)
    Start Time (Date/Time Format)
    End Time (Date/Time Format)

    Combo box to pick an available tech.

    What is the best way to sort the combo box so that it only shows the tech that available for the task (Date and Time) I am creating. Of course the Date and time fields will be filled in first.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    The RowSource of the combobox would be a query that refers to the Start and End Dates boxes. Like: SELECT techID, techName FROM tablename WHERE datefield BETWEEN #" & [startbox] & "# AND #" & [endbox] & "#;"

    What date field(s) are in table to use in the Where clause?

    Then need to trigger a requery of the combobox. Could be a button click or the AfterUpdate events for the date boxes. Maybe just the End Date box.

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

Similar Threads

  1. Sorting a Combo box?
    By newtoAccess in forum Access
    Replies: 3
    Last Post: 03-19-2011, 03:57 PM
  2. Combo box replicates it's data
    By 107295 in forum Forms
    Replies: 1
    Last Post: 02-08-2011, 05:57 AM
  3. Filtering/sorting data
    By jemelton in forum Access
    Replies: 5
    Last Post: 06-09-2010, 01:47 PM
  4. Sorting data in ADO Recordset
    By martinjamesward in forum Programming
    Replies: 1
    Last Post: 08-28-2009, 05:38 AM
  5. Sorting data in a report
    By rjsiler in forum Reports
    Replies: 1
    Last Post: 08-04-2008, 01:40 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