N
Nancy
I have created a form for my customer to enter their selection criteria of
custid. This field is a list box tied to a table. Once the customer selects
something, I have the following after update event attached to the list box:
Private Sub cust_AfterUpdate()
Dim strWhere As String
Dim stDocument As String
If Not IsNull(Me.CUST) Then
strWhere = "[custid] = " & Me.CUST
stDocument = "test"
DoCmd.OpenReport stDocument, acPreview, strWhere
End If
End Sub
1. Am I close on my code?
2. Do I need to do something to the report to to accept the values I am
passing in?
Thanks for all of your help!
custid. This field is a list box tied to a table. Once the customer selects
something, I have the following after update event attached to the list box:
Private Sub cust_AfterUpdate()
Dim strWhere As String
Dim stDocument As String
If Not IsNull(Me.CUST) Then
strWhere = "[custid] = " & Me.CUST
stDocument = "test"
DoCmd.OpenReport stDocument, acPreview, strWhere
End If
End Sub
1. Am I close on my code?
2. Do I need to do something to the report to to accept the values I am
passing in?
Thanks for all of your help!