I have a Parent Form (Orders) and a sub form (OrdersSubform) The parent displays details of the Order and the subform displays details about the relative Items on that order. That's all fine.
I want to create a number of search options
The first one is to change the parent order. I currently have the search option field on the parent form and the code is:-
On the last line above the End Sub above I get the following Runtime error
I have also created another subform on the parent form and put the search options in there. The same thing happens.
I have other forms that that do the same thing but to a subform and they work
Any help would be appreciated
I want to create a number of search options
The first one is to change the parent order. I currently have the search option field on the parent form and the code is:-
Code:
Private Sub tbFilterOrderNumber_Change()
Dim strNewRecord As String
strNewRecord = "SELECT * FROM Orders " _
& " WHERE OrderNumber = " & Me.tbFilterOrderNumber
Forms.OrdersFrm.Form.RecordSource = strNewRecord
End Sub
I have also created another subform on the parent form and put the search options in there. The same thing happens.
I have other forms that that do the same thing but to a subform and they work
Any help would be appreciated
Last edited by a moderator: