• Not displaying whole hyperlink in report field (2000 (in 2003))

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Not displaying whole hyperlink in report field (2000 (in 2003))

    Author
    Topic
    #420665

    I have a report which displays a field which is formatted as a hyperlink. Unfortunately it displays with the contents of the field and the hyperlink “April Document List #AprilDocs20050404” when all I want to see is “April Document List”. It looks fine in the query (except for the underline).

    How can I display the field contents as I required please?

    Thanks
    Roberta

    Viewing 0 reply threads
    Author
    Replies
    • #953235

      What is the Control Source property of the text box that displays the hyperlink field?

      • #953246

        the control source is the field from the query my report is based upon. The query uses the table field (doc Name) which is a hyperlink field. So viewed in a table or form it says e.g.”April Document List” (naturally in blue and underlined) – but for some reason in a report it picks up the hyperlink file name as well?

        • #953248

          That’s strange – hyperlinks display “normally” in reports for me. Could you post a stripped down copy of your database, with just enough left to demonstrate the problem? See post 401925 for instructions.

          • #953267

            herewith cut down version.
            Just with tables
            query and report

            Thanks for your help
            roberta

            • #953274

              Something seems to have gone wrong – there’s no hyperlink field in any of the tables, and no report.

            • #953298

              Opps – try this one –

            • #953304

              It seems to work OK in a report based on the table or on a query based on the table (only), but as soon as the query is based on more than one table, things go wrong. I don’t know why that happens, but here is a workaround:
              – Change the name of the DocumentType text box on the report to (for example) txtDocumentType.
              – Set the Control Source of the text box to

              =IIf(Not IsNull([DocumentType]),Left([Documenttype],InStr([DocumentType],"#")-1))

              This extracts the first part (the display text) from the hyperlink field if it isn’t empty.

            • #953339

              Many thanks – this has worked brilliantly. This has got me some brownie points ahead of my 3 month appraisal tomorrow!!
              Regards
              Roberta

    Viewing 0 reply threads
    Reply To: Not displaying whole hyperlink in report field (2000 (in 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: