D
Dusty
Code:
Private Sub Report_Open(Cancel As Integer)
Dim RptValue As String
RptValue = InputBox("Please type a Wroker ID." & vbCr & vbCr & "To
view all workers leave the box blank.", "OCS ~ CMR")
Me.Filter = "WorkerID = """ & RptValue & """"
Me.FilterOn = True
DoCmd.Maximize
End Sub
On open the input box appears. I enter a User ID (which does exist) and
the report opens with no records.
I am familiar with the parameter quesry and DO NOT need instructions on
that! I need to use the value from the input box to filter the report.
Any help is appreciated.
Private Sub Report_Open(Cancel As Integer)
Dim RptValue As String
RptValue = InputBox("Please type a Wroker ID." & vbCr & vbCr & "To
view all workers leave the box blank.", "OCS ~ CMR")
Me.Filter = "WorkerID = """ & RptValue & """"
Me.FilterOn = True
DoCmd.Maximize
End Sub
On open the input box appears. I enter a User ID (which does exist) and
the report opens with no records.
I am familiar with the parameter quesry and DO NOT need instructions on
that! I need to use the value from the input box to filter the report.
Any help is appreciated.