Hello,
I have been trying to fix this for ages now.
So, what I am trying to do here is to filter this subform using a drop-down menu (maybe an input field will be a better idea) and when I apply the filter I get this run-time error 2580. It says that the record source does not exist. I believe it is because Access does not recognize the input from the combo-box (drop-down) as an Int. But after chaning it to Int it did not work again.
The code :
Private Sub Combo502_AfterUpdate()Dim lenghty As String
lenghty = "select * from dbo_m4_bolts_subform where([m4_lenght]=" & Me.Combo502 & ")"
Me.dbo_m4_bolts_subform.Form.RecordSource = lenghty
Me.dbo_m4_bolts_subform.Form.Requery
End Sub