I'm trying to import a DBase IV file using
DoCmd.TransferDatabase, and am having no luck. After
looking at the help, I'm confused about the arguments.
Here's what I've got:
DoCmd.TransferDatabase _
TransferType:=acImport, _
DatabaseType:="DBase IV", _
DataBaseName:=Me.txtImportFileName.Value, _
objectType:=acTable, _
Source:=Me.txtImportFileName.Value, _
Destination:=Me.cboInputTable
txtImportFileName.Value is the name of the DBase file,
including path.
cboInputTable is the name of the table that I want to
import the DBase file to.
I don't think I understand what "DataBaseName" is supposed
to be. Is it the name of the database I'm importing
into? I tried using
CurrentProject.Path & "\" & CurrentProject.Name
in that position, but then I get a message telling me that's
not a valid path. (In what I show above, DatabaseName is
the same as Source, which I don't think can be right.)
Any help much appreciated. Thanks.
DoCmd.TransferDatabase, and am having no luck. After
looking at the help, I'm confused about the arguments.
Here's what I've got:
DoCmd.TransferDatabase _
TransferType:=acImport, _
DatabaseType:="DBase IV", _
DataBaseName:=Me.txtImportFileName.Value, _
objectType:=acTable, _
Source:=Me.txtImportFileName.Value, _
Destination:=Me.cboInputTable
txtImportFileName.Value is the name of the DBase file,
including path.
cboInputTable is the name of the table that I want to
import the DBase file to.
I don't think I understand what "DataBaseName" is supposed
to be. Is it the name of the database I'm importing
into? I tried using
CurrentProject.Path & "\" & CurrentProject.Name
in that position, but then I get a message telling me that's
not a valid path. (In what I show above, DatabaseName is
the same as Source, which I don't think can be right.)
Any help much appreciated. Thanks.