Hi, Can anyone tell me how to export data to a .dbf file but prompting the user for the file name and location of the save. I have this code and it works but it is fixed as to the file name and location.
Thanks.
Fen How
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 3D ARCVIEW.DBF"
DoCmd.Close acQuery, "qry_si EXPORT FOR MAP"
Thanks.
Fen How
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 3D ARCVIEW.DBF"
DoCmd.Close acQuery, "qry_si EXPORT FOR MAP"