ACC97: Publish to Web Wizard Doesn't Prompt to Overwrite Files

ID: Q165192


The information in this article applies to:


SYMPTOMS

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

When you use the "Publish to the Web Wizard" to create HTML, HTX/IDC, or ASP files, the wizard does not prompt you before it overwrites an existing file with the same name.


RESOLUTION

If you want to be sure you do not overwrite a file by the same name when you export an object to an HTML format, use the Save As/Export command on the File menu to output the object. This command enables you to create the same types of files that the "Publish to the Web Wizard" does, and it prompts you to verify that you want to overwrite an existing file.

Another advantage of using the Save As/Export command is that you can customize the file name you are outputting; a disadvantage is that you can only output one database object at a time.

For more information about using custom file names with files in HTML format, please see the following article in the Microsoft Knowledge Base:

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


STATUS

This behavior is by design.


MORE INFORMATION

Invoke the "Publish to the Web Wizard" by clicking Save As HTML on the File menu. The wizard enables you to save the selections you make on each of its screens in a Web publication profile. If you want to create a new set of HTML files with the same parameters that you saved previously in a Web profile, the wizard recreates the same file names in the same location without prompting you to overwrite existing files. You might use this feature, for example, if you regularly want to recreate static HTML files after your data has changed, or if you want to recreate dynamic IDC/HTX or ASP files after you change the design of a form or report.

Steps to Reproduce Behavior


  1. Start Microsoft Access and open the sample database Northwind.mdb.


  2. On the File menu, click Save As HTML.


  3. Click Next on the opening screen of the "Publish to the Web" Wizard.


  4. On the "What do you want to publish?" screen, click the Shippers table, and then click Next.


  5. On the "What HTML document do you want to use as a default template?" screen, click Next.


  6. On the "What default format type do you want to create?" screen, click Static HTML, and then click Next.


  7. On the "Where do you want to publish to?" screen, type C:\My Documents in the "I want to put my Web publication in this folder" box, and then click Finish.


  8. Use Windows Explorer or File Manager to view the properties of the Shippers_1.html file in the C:\My Documents folder. Note the date and time the file was created.


  9. Repeat steps 1-8. Note that you are not prompted to overwrite the file, and that the date and time on the file have changed, indicating that it was overwritten.



REFERENCES

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

Additional query words: intranet replace export


Keywords          : kbinterop IntPubWiz 
Version           : 97
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 27, 1999