ACC97: Save As/Export Does Not Allow Saving to an FTP AddressID: Q164005
|
Moderate: Requires basic macro, coding, and interoperability skills.
Microsoft Access "Building Applications with Microsoft Access 97," Chapter
21, "Developing Applications for the Internet and the World Wide Web,"
page 620 states:
You can export any Microsoft Access-compatible external data file to an
FTP server.
The Microsoft Access 97 Help topic "Export a database object to an FTP
Internet server" states:
You can export a database object to an FTP server.
Both of these statements are incorrect.
If you want to export to an FTP server use one of the following methods.
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/overview/overview.aspThis sample procedure exports the Shippers table as a Microsoft Excel spreadsheet and the Orders table as a text file from the sample database Northwind.mdb. Make sure that the FTP folder that you are exporting to has write permissions enabled or the export will fail.
Sub ExportToFTP()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
"Shippers", "ftp://servername/shippers.xls"
DoCmd.TransferText acExportFixed, "Orders Export Specification", _
"Orders", "ftp://servername/orders.txt"
End Sub
Macro Name Action
-------------------------
Macro1 TransferSpreadsheet
TransferText
Macro1 Actions
-----------------------------------------------------
TransferSpreadsheet
Transfer Type: Export
Spreadsheet Type: Microsoft Excel 97
Table Name: Shippers
File Name: ftp://ServerName/Shippers.xls
Has Field Names: Yes
TransferText
Transfer Type: Export Fixed Width
Specification Name: Orders Export Specification
Table Name: Orders
File Name: ftp://ServerName/Orders.txt
Has Field Names: Yes
When you try to export a database object to an FTP server, you receive the following message when you click Export in the Save As dialog:
You cannot use an Internet address here. Enter a path that points to a
location on your computer or on the network.
ftp://servername/customers.xls
For more information about WebPost, please see the following article in the Microsoft Knowledge Base:
Q168636 Microsoft Web Publishing Wizard Version 1.5 Available
Additional query words: prb dbase foxpro mdb paradox html
Keywords :
Version : WINDOWS:97
Platform : WINDOWS
Issue type :
Last Reviewed: August 8, 1999