Export Query to dbf

fenhow

Registered User.
Local time
Today, 14:23
Joined
Jul 21, 2004
Messages
599
Hello,

Is it possible to export a query to a .dbf file and be prompted for the file name and save location.

Fen How
 
Hi I found this code and it works but is there any way to prompt for filename and save location?

Thanks.

Fen

Private Sub Command276_Click()
Dim access As access.Application
Set access = CurrentProject.Application
access.DoCmd.OpenQuery "qry_si EXPORT FOR MAP"
access.DoCmd.TransferDatabase acExport, "dBASE IV", "c:\", acTable, "qry_si EXPORT FOR MAP", "MIDDLETON FOR ARCVIEW.DBF"
DoCmd.Close acQuery, "qry_si EXPORT FOR MAP"
End Sub
 

Users who are viewing this thread

Back
Top Bottom