ACC97: Cannot Hyperlink to Documents with "#" in the Name

Last reviewed: May 7, 1997
Article ID: Q162855
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

If you include the number sign (#) character in a hyperlink file name, you may receive the following error message:

  Unable to open <filename>. Cannot open the specified file.

  -OR-

  The Windows Explorer will open the folder where the file is located.

CAUSE

Because hyperlinks in Microsoft Access are stored as modified Memo fields with the number sign (#) character as a delimiter, it is essentially a reserved character for hyperlinks.

RESOLUTION

Do not use the number sign (#) character in hyperlink file names.

MORE INFORMATION

Steps to Reproduce Behavior

Hyperlink on a Form

  1. Save a text file on the Desktop with the name "#test.txt" (without the quotation marks).

  2. In Microsoft Access, create a form not based on any table or query in Design view.

  3. Insert a hyperlink.

  4. In the Link To file or URL box, locate and select the #test.txt file on the Desktop. Click OK twice.

  5. Change the form to Form view.

  6. Click the hyperlink. Note that you receive the following error message:

          Unable to open test.txt. Cannot open the specified file.
    

    Note that the number sign (#) is missing from the file name, and that the file does not open.

Hyperlink in a Table

  1. Save a text file on the Desktop with the name "#test.txt" (without the quotation marks).

  2. Create a table with a field named Hlink with a Hyperlink data type. Save the table as Table1.

  3. Open the Table1 table in Datasheet view. In the Hlink field, insert a hyperlink.

  4. In the Link To file or URL box, locate and select the #test.txt file on the Desktop. Click OK twice.

  5. Click the hyperlink. Note that Windows Explorer brings up the folder where the file is located, but does not open it.

NOTE: The same result will occur if you manually type the Hyperlink, instead of browsing to and selecting the file.

REFERENCES

For more information about Hyperlinks, search the Help Index for "hyperlinks, addresses," and then "About hyperlink addresses in hyperlink fields and controls."


Keywords : kberrmsg kbother TblDatyp
Version : 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.