• Setting the Filter Property on a Form (Access 2k)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Setting the Filter Property on a Form (Access 2k)

    Author
    Topic
    #399329

    Dear All

    I’ve got a form that displays data from a child table. I want the users to see a list of the records in this table, but not where a specific field is filled in. Can I do this with the form’s Filter property, or do I need to use a query to collect the data for the form? I had hoped to keep it simple as the form will allow the data to be edited.

    I’ve had to rule out using a combo box as the two references the user is likely to have to hand can have duplicates in this table. This results in the combo box presenting the first such record (after all it is rs.FindFirst ). I gave some serious thought to using an array or collection, but as I started to read up on these it soon became apparent they are beyond my VBA savvy.

    I’m guessing the Filter property is the right solution, but cutting and pasting SQL hasn’t worked, and none of the other attempts at copying functioning filters has been successful.

    What’s the ‘trick’ to this??

    Thanks

    Ian

    Viewing 1 reply thread
    Author
    Replies
    • #770432

      Are you using a subform to display the child data? I presume by child data, you mean a table with a many to one link to the primary table?

      • #770450

        Wendell

        I’m not using a sub form, it’s a stand alone form to display all the records in the child table. The child table is the many side of the relationship, yes.

        Thanks

        Ian

        • #770457

          If you always want the form to display records for which a specific field has not been filled in, it is better to change the query that acts as record source than the filter – a stored query is more efficient. Just add Is Null in the Criteria: line for the specific field.

          Post back if that is not what you intended (I am not sure what you actually want)

        • #770458

          If you always want the form to display records for which a specific field has not been filled in, it is better to change the query that acts as record source than the filter – a stored query is more efficient. Just add Is Null in the Criteria: line for the specific field.

          Post back if that is not what you intended (I am not sure what you actually want)

      • #770451

        Wendell

        I’m not using a sub form, it’s a stand alone form to display all the records in the child table. The child table is the many side of the relationship, yes.

        Thanks

        Ian

    • #770433

      Are you using a subform to display the child data? I presume by child data, you mean a table with a many to one link to the primary table?

    Viewing 1 reply thread
    Reply To: Setting the Filter Property on a Form (Access 2k)

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

    Your information: