• FIlter a form (2003)

    Author
    Topic
    #435523

    I am trying to filter a form based on Status. I want to filter based on 2 choices on the status field – null or On Hold.
    The code on the form is Me.filter= “Status=’On Hold'” and that brings back the on holds. How can I bring in the nulls also?

    Thanks,
    Ben

    Viewing 0 reply threads
    Author
    Replies
    • #1029537

      — Click on the Filter By Form icon (looks like a coffee filter in front of a form)
      — In the form, go to the Status field
      — It should already have “On Hold”, add or Is Null….When you are finished it should read “On Hold” or Is Null

      • #1029705

        The problem is I have this as a continous form that is based on the table. I tried what you said and saved but it doesn’t save the is null when I reopen. Is there code that I could add to make it work? Thanks

        Ben

        • #1029717

          The “continuous” nature of the form should not matter.

          Might you post a copy of the DB with any confidential data removed?

          • #1029721

            Question – I have the form set to no adds or edits. This form is only for viewing on holds or nulls. Would the no adds or edits affect anything?

            • #1029725

              I would not think so. What is the setting for the property “Allow Filters”? I would assume that it is “Yes”.

            • #1029726

              It is set to yes.

            • #1029727

              If the form is for viewing only those records that are On Hold or the field is null, why not skip the filters and base the form on this criteria? Go to the form’s Record Source and use the wizard to set these criteria.

            • #1029863

              That works. I just made a query based on that criteria.

              Ben

    Viewing 0 reply threads
    Reply To: FIlter a form (2003)

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

    Your information: