<%
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
dbpath=Server.MapPath("down.mdb")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &dbpath
cn.Execute "select * into [DBase IV;Database=F:\dbf\].Customer from doctor"
cn.Close
Set cn = Nothing
%>
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Northwind.mdb;"
cn.Execute "select * into [DBase IV;Database=D:\].Customer from Customers"
cn.Close
Set cn = Nothing
Use the File/SaveAs Export menu, or use an ODBC driver.
In Access 2000 MS had a licensing problem with the ODBC for dBase. They were only allowed to make it read-only. To get a read/write driver you had to go to Borland.
Field names in dBASE files can't be longer than (I think) 10 characters and can't contain spaces or special chcaracters. If you have two fields whose names only differ after the 10th character, you can expect the error message you've been getting. Work round it by creating a query that uses short, unique field names, and export that.
Filenames and paths must also be short. No more than 8 characters for the file name (plus the .dbf) or any folder name in the path, no spaces, and the whole path mustn't be more than 64 characters long. So export them to somewhere like
C:\dBase\Exports\Myfile.dbf
not
C:\Documents and Settings\Lori\........