I am running Access 2003. I have a form that shows my client info, my user can click a button to load a report in print preview for that client. Works great. Is there anything I can add in the VBScript that will convert it to word instead of opening the report in print preview mode but instead as a word doc?
Here is my VB script.
Here is my VB script.
Code:
Private Sub cmd_Fax_Click()
On Error GoTo Err_cmd_Fax_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rep_CONTACT_FAX"
stLinkCriteria = "[CompName] = """ & [Company] & """"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_cmd_Fax_Click:
Exit Sub
Err_cmd_Fax_Click:
MsgBox Err.Description
Resume Exit_cmd_Fax_Click
End Sub