Code:
Private Sub Command_Click ()
Dim Text239 As String
DoCmd.OpenReport "Exception Log", acViewPreview, , strWhereExeception & " strWhereException = "[Text239] = " & Forms![Patients]!SelectException”
End Sub
I have a textbox (Text239) on a form that is only visible if a checkbox is selected. What I am trying to do is put a button on that form that will print oyt all exceptions. That is all recorde where Text239 has data in it or been selected. The code above is my attempt that I am sure needs work. The form is Patients. Thank you.