M
Milhouse Van Houten
Hello,
I have the macro below, which prompts for a location to save the file to,
but only by browsing to the location. Is there a way where I can get a
dialog box instead (or in addition) that would allow me to directly type in
a path and hit enter?
I'm using Access 2007 SP2
Thanks
'------------------------------------------------------------
' ExportPayrollConfirmation
'
'------------------------------------------------------------
Function ExportPayrollConfirmation()
On Error GoTo ExportPayrollConfirmation_Err
DoCmd.OutputTo acOutputQuery, "Payroll_Confirmation",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint
DoCmd.OutputTo acOutputQuery, "QRYPrlIncompleteFiles",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint
ExportPayrollConfirmation_Exit:
Exit Function
ExportPayrollConfirmation_Err:
MsgBox Error$
Resume ExportPayrollConfirmation_Exit
End Function
I have the macro below, which prompts for a location to save the file to,
but only by browsing to the location. Is there a way where I can get a
dialog box instead (or in addition) that would allow me to directly type in
a path and hit enter?
I'm using Access 2007 SP2
Thanks
'------------------------------------------------------------
' ExportPayrollConfirmation
'
'------------------------------------------------------------
Function ExportPayrollConfirmation()
On Error GoTo ExportPayrollConfirmation_Err
DoCmd.OutputTo acOutputQuery, "Payroll_Confirmation",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint
DoCmd.OutputTo acOutputQuery, "QRYPrlIncompleteFiles",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint
ExportPayrollConfirmation_Exit:
Exit Function
ExportPayrollConfirmation_Err:
MsgBox Error$
Resume ExportPayrollConfirmation_Exit
End Function