B
blake7
Hi I have the following code behind a button which writes my report to disc
ok, my question is - is it possible to write the destination drive and
target folder into this code so it does not have to be chosen by the
operator? if so how - Thanks
Private Sub Command29_Click()
On Error GoTo Err_Command29_Click
Dim stDocName As String
stDocName = "DailyAuditReport2"
DoCmd.OutputTo acReport, stDocName, acFormatRTF
Exit_Command29_Click:
Exit Sub
Err_Command29_Click:
MsgBox Err.Description
Resume Exit_Command29_Click
End Sub
ok, my question is - is it possible to write the destination drive and
target folder into this code so it does not have to be chosen by the
operator? if so how - Thanks
Private Sub Command29_Click()
On Error GoTo Err_Command29_Click
Dim stDocName As String
stDocName = "DailyAuditReport2"
DoCmd.OutputTo acReport, stDocName, acFormatRTF
Exit_Command29_Click:
Exit Sub
Err_Command29_Click:
MsgBox Err.Description
Resume Exit_Command29_Click
End Sub