Results 1 to 4 of 4
  1. #1
    benjammin is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Nov 2010
    Posts
    60

    change subform completely based on combo box

    Hi, I have an unbound form that has a few combo boxes that eventually drill you down to one choice (which calibration records do you want to see? Water level? Conductivity? DO? Etc...).

    I have a subform based on a query but i have different queries for each calibration. Master/Child fields will remain the same but the actual query and subform used will be different. How can I change the subform on the fly like that based off of a combo selection?

  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
    Change the SourceObject property of the subform control to the appropriate form name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    benjammin is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Nov 2010
    Posts
    60
    Thanks, would there be a way to change the query of the subform so I don't have to create a slew of subforms?

  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,521
    Ah, you said "the actual query and subform used will be different" That said, you can certainly change the RecordSource property of the subform.
    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: 3
    Last Post: 12-11-2012, 09:12 AM
  2. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  3. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  4. Image change based on combo box
    By bosve73 in forum Forms
    Replies: 4
    Last Post: 08-09-2010, 02:23 AM
  5. Updating subform based on combo box change
    By kev921hs in forum Forms
    Replies: 3
    Last Post: 04-01-2010, 08:43 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