Results 1 to 2 of 2
  1. #1
    Tlegendz8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    1

    Filter a Subform with 4 combo box

    Good Afternoon,

    I have acess 2010 and i want filter my subform with 4 combo box value.
    My subform must show Nome and Descrição from T_doença. The combo box show the Nome and sintoma_Id from T_sintoma.
    There is a table that relates doença_Id and sintoma_id.
    What i want is to find the doença_Id, and therefore Nome and descrição for the subform, that have the sintoma_Id from combobox1, and the combobox2, and so on.
    The form is F_Doença and the subform SF_Pesquisa.



    It is a program that filters illness that have the 4 symptons in the combobox's, doesnt show the rest (for example an ilness that has 3 of the 4 symptoms won't appear)

    File: https://feupload.fe.up.pt/get/QCFOH0UKbwBEscT
    I cant upload it by the forum becaus it has 4 mb
    Any suggestions?

    Thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,974
    Next time, run Compact & Repair (reduced to 1.2MB) then zip the file. 2MB zip attachment allowed.

    Two ways to apply multiple parameters:

    1. dynamic parameterized query, review http://www.datapigtechnologies.com/f...tomfilter.html

    2. VBA code constructs filter string, review http://www.allenbrowne.com/ser-62code.html

    F_Doenca does not have a subform on it.

    SF_Pesquisa is on F_Pesquisa.

    QSF_Pesquisa is a GROUP BY query. This is not editable query. If you want to do data entry/edit on the subform, cannot use GROUP BY query.
    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: 3
    Last Post: 04-20-2014, 08:13 PM
  2. Filter Subform by Combo Box Dates
    By steve042 in forum Forms
    Replies: 14
    Last Post: 06-20-2013, 07:36 AM
  3. Replies: 19
    Last Post: 07-23-2012, 10:34 AM
  4. Replies: 3
    Last Post: 06-02-2012, 07:39 PM
  5. Replies: 14
    Last Post: 05-25-2012, 02:40 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