ACC: Correct Syntax for TransferDatabase to dBASE and ParadoxID: Q97519
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you attempt to export a Microsoft Access table to dBASE or Paradox,
you may encounter errors. This article explains the correct argument syntax
for exporting the Categories table from the sample database Northwind.mdb
(or NWIND.MDB in versions 1.x and 2.0) to dBASE III using the
TransferDatabase macro action. The equivalent Visual Basic syntax (or
Access Basic syntax in versions 1.x and 2.0) is also explained.
NOTE: Both of the following examples export the Categories table to
a dBASE file in the C:\DBASE folder (directory). You need to enter a valid
folder in your macro or you may receive the following error message when
you run the macro or function:
isn't a valid path
Macro Name Action
-------------------------------
Export1 TransferDatabase
Export1 Actions
------------------------------
TransferDatabase
Transfer Type: Export
Database Type: dBASE III
Database Name: C:\dbase
Object Type: Table
Source: Categories
Destination: Test1.dbf
Structure Only: No
In version 7.0:
Function ExportdBASE ()
DoCmd.TransferDatabase a_export, "dBASE III", "c:\dbase", _
a_table, "Categories", "Test1.dbf"
End Function
In versions 1.x and 2.0:
Function ExportdBASE ()
DoCmd TransferDatabase a_export, "dBASE III", "c:\dbase", _
a_table, "Categories", "Test1.dbf"
End Function
Additional query words: kberrmsg
Keywords : kbusage DcmOthr
Version : 1.0 1.1 2.0 7.0
Platform : WINDOWS
Issue type :
Last Reviewed: March 20, 1999