Results 1 to 14 of 14
  1. #1
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16

    List Box Filter

    Good afternoon Great ones!
    And happy Labor Day to you all!

    I have a list box that lists scheduled appointments. I am hoping to add a date picker at the top, choose a date and only see those appointments for that chosen date.
    Thank you in advance for your help.



    Mike

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you would be satisfied with *only* showing appointments for a single day, you could start by creating the date control and then reference that control in the RowSource of the ListBox. You'll want to initialize the date in the Load Event of the form.

  3. #3
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16
    Thank you Sir. Would you, by chance, be willing to help me do that?
    I'm not sure how to make it happen.
    I am completely satisfied if it only shows appointments for a single day.

    Respectfully-

    Mike

    Quote Originally Posted by RuralGuy View Post
    If you would be satisfied with *only* showing appointments for a single day, you could start by creating the date control and then reference that control in the RowSource of the ListBox. You'll want to initialize the date in the Load Event of the form.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sure. Have you created the date control yet?

  5. #5
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16
    Negative sir. Would I create a text box formatted with Date? Then perhaps add the code in the After Update control?


    Quote Originally Posted by RuralGuy View Post
    Sure. Have you created the date control yet?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Pretty much. Just create the TextBox first and test the ability to change it.

  7. #7
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16
    Ok. I will attempt it now. Can you help with what specifically I would enter in the After Update control?

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sure but get the control working first. Then we'll initialize it in the Load event of the form.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    OK, create the date control on the form so it looks the way you want and then send it to me zipped up. The poster has supplied me with a copy of the db so we can speed up the process some for those following along.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Hmm...did you plan to use one of the two controls already on the form?

  11. #11
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16
    I'm sorry to which controls are you referring?

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It looks like they are SubForm controls. I need to examine them closer for function.

  13. #13
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Okay, they are just to show the counts of your records. Let's take this off line for a bit to clear up some of the functions. Without the db, anyone reading this will just be lost.

  14. #14
    mikejames is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2011
    Location
    Southern Michigan
    Posts
    16
    Agreed. Okay.

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

Similar Threads

  1. Customer List Filter
    By raffi in forum Macros
    Replies: 2
    Last Post: 11-01-2014, 02:43 PM
  2. Row source value list filter
    By Ruegen in forum Programming
    Replies: 1
    Last Post: 01-27-2014, 10:19 PM
  3. Replies: 15
    Last Post: 11-20-2013, 04:30 PM
  4. Filter Report By list box
    By BorisGomel in forum Access
    Replies: 1
    Last Post: 04-21-2011, 03:26 PM
  5. Filter List box using text box
    By oakoen in forum Forms
    Replies: 3
    Last Post: 12-13-2010, 05:00 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