most likely another easy fix that has me stumped.
I have a main form with a command button to open a report. Evertything seems to work except that I can't get it it open and display on my cpu, it prints the report directly How do you turn this feature off?
currently I have tried different variations of the the event procedures from the on click. below is what I have currently.
Private Sub NAME_SEARCH_Click()
On Error GoTo Err_NAME_SEARCH_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rpt offenceslist"
DoCmd.OpenReport "rpt offenceslist", acViewNormal, "", "", acWindowNormal
Exit_NAME_SEARCH_Click:
Exit Sub
Err_NAME_SEARCH_Click:
MsgBox Err.Description
Resume Exit_NAME_SEARCH_Click
End Sub
I have a main form with a command button to open a report. Evertything seems to work except that I can't get it it open and display on my cpu, it prints the report directly How do you turn this feature off?
currently I have tried different variations of the the event procedures from the on click. below is what I have currently.
Private Sub NAME_SEARCH_Click()
On Error GoTo Err_NAME_SEARCH_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rpt offenceslist"
DoCmd.OpenReport "rpt offenceslist", acViewNormal, "", "", acWindowNormal
Exit_NAME_SEARCH_Click:
Exit Sub
Err_NAME_SEARCH_Click:
MsgBox Err.Description
Resume Exit_NAME_SEARCH_Click
End Sub