• ComboBoxes on Form to filter a Report (Access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ComboBoxes on Form to filter a Report (Access 97)

    Author
    Topic
    #365863

    I have two combo boxes on a form which will be used as criteria for a report. How do I store the value selected by the user in the combo box, and then use in a query to filter my report?

    Thank you,
    Kim

    Viewing 1 reply thread
    Author
    Replies
    • #565643

      Set source of combobox to

      [query]![queryname]![fieldname]

      Search MSKB for filter by form

    • #565708

      Unless you want to store the details for printing out later, it is not so much a case of storing the value as having the query checking the values when it is run.
      In the criteria field of the Query grid use the builder to get the value from the combo box on the form, some thing like
      [Forms]![frmReportFilter]![cboLineName]

      HTH

      Peter

    Viewing 1 reply thread
    Reply To: ComboBoxes on Form to filter a Report (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: