Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating DBF File form Access Table

Status
Not open for further replies.

MadJock

Programmer
May 25, 2001
318
GB
Hi folks,

I am trying to create a dBase IV DBF file from one one of my access tables. I have managed to do this by using a Macro, however, I would rather do it in VBA so that it is more configurable.

The following code is as far as I have got so far:
Code:
DoCmd.TransferDatabase acExport, "dBase IV", strdbaseName, acTable, "tblParams", strDestPath

where strDbaseName is the path to my Access Database and strDestPath is the path and name for the DBF I wish to create.

I just keeo getting an 'invalid path' error (the paths are correct, but perhaps not what the method is expecting?). I have looked at the help, but found it rather vague for this method.

Any suggestions would be greatly appreciated.

Thanks,

Graeme website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top