C
cw via AccessMonster.com
I have the following query: qryEquipment_Intelebill
- which I output as an Excel file
- save to a shared folder
- email the link to a co-worker
- first Monday of every week
How do I make this process completely automatic?..
- On Monday morning have the database open,
- run the query & save as Excel 2003~2007
- to my shared folder & always overwrite the old file
- then forward a LINK to that file only, in the Body of the email to the same
co-worker
I have worked with parts of this kind of procedure before but a little
unclear on putting it all together in a single unattended process.
Currently, I use a command button with this code behind it, then I email the
file while in Excel:
----------------------------------------------
Private Sub Command17_Click()
On Error GoTo Err_Handler
DoCmd.OutputTo acOutputQuery, "qryEquipment_Intelebill", acFormatXLS, "",
True
Exit_Sub:
Exit Sub
Err_Handler:
If Err = 2501 Then
Else
MsgBox "Error " & Err.Number & " " & Err.Description
End If
Resume Exit_Sub
End Sub
- which I output as an Excel file
- save to a shared folder
- email the link to a co-worker
- first Monday of every week
How do I make this process completely automatic?..
- On Monday morning have the database open,
- run the query & save as Excel 2003~2007
- to my shared folder & always overwrite the old file
- then forward a LINK to that file only, in the Body of the email to the same
co-worker
I have worked with parts of this kind of procedure before but a little
unclear on putting it all together in a single unattended process.
Currently, I use a command button with this code behind it, then I email the
file while in Excel:
----------------------------------------------
Private Sub Command17_Click()
On Error GoTo Err_Handler
DoCmd.OutputTo acOutputQuery, "qryEquipment_Intelebill", acFormatXLS, "",
True
Exit_Sub:
Exit Sub
Err_Handler:
If Err = 2501 Then
Else
MsgBox "Error " & Err.Number & " " & Err.Description
End If
Resume Exit_Sub
End Sub