It gave me a error. I added a entry number field to the table and added it to the form and report. Field name: EntryNumber
Its telling me along with highlighting the last EntryNumber "variable not defined"
Code:
Private Sub Command864_Click()
On Error GoTo Err_Command864_Click
Dim stDocName As String
stDocName = "rptCDSCursoryReview3"
DoCmd.OpenReport stDocName, acPreview, , "EntryNumber=" & EntryNumber
Exit_Command864_Click:
Exit Sub
Err_Command864_Click:
MsgBox Err.Description
Resume Exit_Command864_Click
End Sub