ACC97: Space in HTML File Name May Cause Web Browser Error

ID: Q165472


The information in this article applies to:
  • Microsoft Access 97


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you browse to an Internet page created with Microsoft Access 97, if the file name contains a space, your Web browser may return the following error message:

HTTP/1.0 404 Object Not Found


CAUSE

Some Web browser programs require an escape sequence of %20 instead of spaces in a long file name. This problem does not occur with Microsoft Internet Explorer 3.0.


RESOLUTION

The following four techniques enable you to work around this behavior if your Web browser does not support spaces in HTML file names.

Method 1: Do Not Use Spaces in Object Names

If you know you will export a database object to HTML, HTX/IDC, or ASP format, do not use spaces in the object name.

Method 2: Modify the HTML Home Page

NOTE: This section contains information about editing HTML files, and assumes that you are familiar with editing HTML files. Microsoft Access Product Support professionals do not support customization of any HTML, HTX, IDC, or ASP files.

If you use the "Publish to the Web" Wizard to create HTML files and a home page, you can edit the home page HTML file to modify the links to other pages that have spaces in their names. Change the spaces in the HREF path to other file names with %20. For example, instead of

   HREF="Order Details_1.html" 

change it to read:

   HREF="Order%20Details_1.html" 

Method 3: Export Objects with Spaces One at a Time

If you already have objects in your database with spaces in their names, and you want to export them to HTML, HTX/IDC, or ASP format, you can export them one at a time using the Save As/Export command on the File menu. This method gives you an opportunity to rename the files and remove the spaces.

The "Publish to the Web" Wizard does not allow you to select or modify the names of your files. Renaming the files to remove spaces after you create them may cause problems when you try to view the files with your Web browser. For more information, please see the following article in the Microsoft Knowledge Base:

Q163466 ACC97: Publish to the Web Wizard Does Not Allow Custom File Name

Method 4: Install Microsoft Internet Explorer 3.0

You can download Microsoft Internet Explorer version 3.0 free of charge from Microsoft's Web site at:

http://www.microsoft.com/ie/download/

Or, if you purchased Microsoft Access 97 or Microsoft Office 97 Professional Edition on compact disc, you can install Microsoft Internet Explorer 3.0 from the Office 97 ValuPack. Run the file Msie301.exe in the \Valupack\Iexplore folder on the compact disc.


REFERENCES

For more information about the "Publish to the Web" Wizard, search the Help Index for "Publish to the Web Wizard," or ask the Microsoft Access 97 Office Assistant.

For more information about the exporting objects individually, search the Help Index for "saving database objects, in other file formats."

Additional query words: html idc asp ie netscape mosiac

Keywords : kberrmsg IntPubWiz IntAsp HtmView
Version : 97
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: May 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.