Results 1 to 4 of 4
  1. #1
    alfasprint is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    5

    Cascaded Combo Boxes on a form?

    Hello again.



    I have a database with Patient Visits to my office and data collected in each visit.

    The Frm_Ptn_VisitDate enters the Dates a Patient Visits my Office.

    In the Frm_Testing I have a Form/Subform Configuration. If I select a Date in Combo17 (AptDate1 Label), it correctly changes the name of the Patient and the data collected in the specified date on the Subform.

    1) What I can NOT do, is to have Combo17 show ONLY the dates a certain Patient visited my Office and not all the visits from all the Patients.

    2) Another (better?) solution would be to create Cascaded Combo Boxes. For this cause I have added Combo19 from where you can select a Patient Name (I removed the duplicate values). Based on this Combo Box I would like Combo17 to show ONLY the dates this certain Patient visited my Office. Unfortunately I haven't succeeded so far.SO_FAR.zipSO_FAR.zip

    Thanks for your help. Waiting for your feedback.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You would have to have criteria for both Visit Date and Patient.
    Without a constraint on Patient, you will get all patients
    I don't use macros.

    See this for cascading combo

  3. #3
    alfasprint is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    5
    Used simple way seen on
    http://www.datapigtechnologies.com/f...combobox2.html

    and it worked perfectly.

    @orange: I try to figure out the difference of the dynamic and static update on your example.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I usually send posters to the Datapig videos. This time, I suggested Baldyweb because others do.
    I'll look at that site. Paul (Baldy) is an MVP and moderator here. It is his site and example I was pointing you to.

    dynamic --he is using the value selected in state2, and actually modifying the rowsource of cbocities2

    static --- he is using the value you selected in state1 in the sql to populate cbocities1

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

Similar Threads

  1. Sub-Form with Cascaded Records
    By znxm0i in forum Forms
    Replies: 3
    Last Post: 07-10-2015, 07:15 AM
  2. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  3. Replies: 11
    Last Post: 08-06-2014, 09:47 AM
  4. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  5. Cascaded comboboxes in a form
    By luca in forum Forms
    Replies: 2
    Last Post: 11-22-2009, 05:36 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