• How to Filter Hyperlink

    Author
    Topic
    #461638

    Some URLs contains “.pdf”.
    For example: “c:ABCAccess.pdf”
    How to filter records with the field containing “.pdf”?
    Currently I use:
    Me.Filter = “ like ‘*pdf*'”
    Me.FilterOn = True

    but it won’t work.
    Armstrong

    Viewing 0 reply threads
    Author
    Replies
    • #1171938

      In what sense doesn’t it work? Do you get too many records? Or too few? Or the wrong ones?

      • #1171942

        In what sense doesn’t it work? Do you get too many records? Or too few? Or the wrong ones?

        No record is shown.
        Armstrong

        • #1171944

          The screenshot shows after clicking PDF (button), not a single record is shown.
          Armstrong

          • #1171945

            The subprocedure for the PDF button:

            Private Sub CmdPDF_Click()
            Me.Filter = “ like ‘*pdf'”
            Me.FilterOn = True
            End Sub

            Armstrong

            • #1171950

              Try changing

              Me.Filter = “ like ‘*pdf'”

              to

              Me.Filter = “ like ‘*.pdf*'”

              (A hyperlink field that refers to a file C:DocsTest.pdf actually contains #C:DocsTest.pdf#, so you must use a * after pdf too)

            • #1171951

              Try changing

              Me.Filter = “ like ‘*pdf'”

              to

              Me.Filter = “ like ‘*.pdf*'”

              (A hyperlink field that refers to a file C:DocsTest.pdf actually contains #C:DocsTest.pdf#, so you must use a * after pdf too)

              Hi HansV,
              Your solution works instantly. Yes, now I got tons of pdf records. Thanks a lot.
              Armstrong

    Viewing 0 reply threads
    Reply To: How to Filter Hyperlink

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

    Your information: