I'm writing a procedure to export a table to a flat data file on disk, but I can't create a FileDialog of type msoSaveAs. Microsoft's website says this feature isn't supported in Access 02. Does anyone have a good workaround for this problem?
Code:
Dim objDialog As FileDialog
'Run-time error 445 here
Set objDialog = Application.FileDialog(msoFileDialogSaveAs)
With objDialog
.ButtonName = "Save"
.Title = "Save Claims…"
.Filters.Clear
.Filters.Add "Text Files", "*.txt"
.Filters.Add "All Files", "*.*"
.InitialFileName = "*.txt"
If .Show = True Then DoCmd.TransferText acExportFixed, , "tblClaims", .Item, False
End With
Set objDialog = Nothing