Results 1 to 2 of 2
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    ComboBoxe (Same Name) on Multiple forms - would like to filter Query with the CBO on the current for


    I have a Query that is filtered by a combo box - there are several duplicate forms with the same comboBox on them

    I thought I saw that you could use [Form].[cboCompany] instead of [forms]![Form1].[cboCompany]

    If I could reference the open form - I would not have to build the same query 10 times.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    This is one reason I don't use dynamic parameters in query. I use code to pass filter criteria to form or report when opening.

    DoCmd.OpenReport "report name", , , "ID=" & Me.cboCompany
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  2. Current Year Date Filter
    By barkly in forum Queries
    Replies: 5
    Last Post: 08-24-2013, 03:50 AM
  3. Query Multiple Filter
    By QuickQuery? in forum Queries
    Replies: 4
    Last Post: 03-27-2013, 04:28 PM
  4. Multiple Sub Forms with Query Filter
    By Gabriel2012 in forum Forms
    Replies: 1
    Last Post: 02-04-2013, 05:34 PM
  5. Filter Multiple Forms from one option box
    By chaos_05 in forum Forms
    Replies: 1
    Last Post: 12-02-2011, 10:39 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