• Combo Control on tabbed page as filter

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Combo Control on tabbed page as filter

    Author
    Topic
    #465921

    Hi,

    I’m trying to filter a query based on a combo list control [cmbIndividual] that resides on [pageCensu] on frmReports. When the I run the query using the following sql it comes up null:

    [forms]![frmReports]![cmbIndividual]

    If I try it with the following it also comes up null:

    [forms]![frmReports]![pageCensus]![cmbIndividual]

    What am I missing?

    Thanks,
    Leesha

    Viewing 2 reply threads
    Author
    Replies
    • #1205227

      [forms]![frmReports]![cmbIndividual]
      Looks OK to me.
      Is the form frmReports Open when the report runs

      The only time it normally returns NULL rather than a prompt is if the Form is open in Design rather than Data Mode,
      or if the combo box has no value inside it.

      I assume by page you mean you are using a Tab Control.
      You do not normally have to reference the tab control.

    • #1205233

      Hi Andrew,
      The form was open so that is why I wasn’t sure about adding in the tabbed page. I went back and hunted and found that at somepoint (God only knows why or when) I set the bound column to 2. Once I reset it to 1 the report ran.

      Thanks!
      Leesha

    • #1205237

      That’d do it!

    Viewing 2 reply threads
    Reply To: Reply #1205233 in Combo Control on tabbed page as filter

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

    Your information:




    Cancel