Results 1 to 5 of 5
  1. #1
    kurazy is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    7

    Question Updating subform based on 2 criteria from main form

    I have a query that runs based on 2 criteria. I have a form with a subform that is based on the query. I want to update/display/run the query in the subform based on the selections of the controls in the main form.

    When I make my selections the subform stay blank

    Please help

    Thx
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The query uses INNER JOIN - should be RIGHT JOIN.

    The comboboxes have BoundColumn set to 2 and should be 1.

    Then you need code to Requery the subform after selections in comboboxes or click Refresh All from the ribbon.

    I would use a single form set to Continuous View so the comboboxes could be in the same form as the data. Controls can be arranged in Continuous View to look like Datasheet.

    I never use dynamic parameterized queries. I use VBA to set form Filter property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    kurazy is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    7
    I have to admit I am a bit of a noob when it comes to access. I didn't write the sql, I used the query design and I don't know vba. So I am a bit lost.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Specifically what do you not understand about the instructions already given?

    Use the query builder to modify the links between tables in the query.

    Have you studied an introductory reference to learn basics?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    kurazy is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    7
    Aha. I think I got it. Thanks. I didn't read your first reply properly. Bad habit, my bad

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

Similar Threads

  1. Replies: 1
    Last Post: 07-18-2014, 04:11 AM
  2. Replies: 2
    Last Post: 03-21-2014, 10:40 AM
  3. Replies: 3
    Last Post: 11-04-2012, 09:25 AM
  4. Replies: 5
    Last Post: 12-26-2011, 07:52 AM
  5. Replies: 6
    Last Post: 06-03-2009, 02:01 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