Almost Back to Paradise: Printing report in MS Word

R

Rambo

Hi,

Thanks to some help from Duane Hookem and Phillip Windell I was able to
figure out how to preview reports based on specific criteria using the
following code

Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String

strReportName = "rptProgress"
strCriteria = "[EmployeeID] = '" & Me![EmployeeID] & "' and " & _
"[dtmDateofProgress] = #" & Me![dtmDateofProgress] & "#"

DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub

Now I am trying to work it so that you have the option of opening the
report in word after previewing it...Does anyone have any suggestions?

Thanks in advance.

Sincerely,
Rambo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top