D
DeVille
Hi
(Im using access 2002)
I am looking for a line of code to do the same function
as the little button that appears when I open a report on
the tool bar just to the right of the word 'setup', the
button has a large 'W' symbol on it and it
outputs/publishes the open report to MS Word
Here is the code I have on a button(EmailTo) which opens
the report "Email To Report" , the ( ? ) is where I think
the code should go, thanks in advance
Private Sub EmailTo_Click()
On Error GoTo Err_EmailTo_Click
Dim stDocName As String
Me.Refresh
stDocName = "Email To Report"
DoCmd.OpenReport stDocName, acPreview, , "RefId = " &
Me!RefID
( ? )
Exit_EmailTo_Click:
Exit Sub
Err_EmailTo_Click:
MsgBox Err.Description
Resume Exit_EmailTo_Click
End Sub
(Im using access 2002)
I am looking for a line of code to do the same function
as the little button that appears when I open a report on
the tool bar just to the right of the word 'setup', the
button has a large 'W' symbol on it and it
outputs/publishes the open report to MS Word
Here is the code I have on a button(EmailTo) which opens
the report "Email To Report" , the ( ? ) is where I think
the code should go, thanks in advance
Private Sub EmailTo_Click()
On Error GoTo Err_EmailTo_Click
Dim stDocName As String
Me.Refresh
stDocName = "Email To Report"
DoCmd.OpenReport stDocName, acPreview, , "RefId = " &
Me!RefID
( ? )
Exit_EmailTo_Click:
Exit Sub
Err_EmailTo_Click:
MsgBox Err.Description
Resume Exit_EmailTo_Click
End Sub