For some reason when applyinf a filter, not changeing or adding information to my database i get a 3022 error.
here is the offending code.
what this does is changes the text on a command button and sets a filter to only display the record corisponding to the listbox selection made.
it works on other forms for other data, the thing diferent about this 1 is that list6 is a multi column list box. is that my downfall?
FYI list6 has 2 column's 0 and 1 column 0 contains the unique container number i am trying to filter on. the second column is a location for the container wich is a text field.
here is the offending code.
Code:
Private Sub Updatebutton() Dim f As String Command6.Caption = "Deactivate " & Me.List6.Value Command6.ForeColor = vbRed Command6.FontSize = 30 - ((Len(Me.List6.Value) - 8) / 2) f = "Container =" & List6.Value Debug.Print f Me.Filter = f '******************** this is what get highlighted when i get teh error and hit debug.************ Form.FilterOn = True l6 = List6.Value End Sub
it works on other forms for other data, the thing diferent about this 1 is that list6 is a multi column list box. is that my downfall?
FYI list6 has 2 column's 0 and 1 column 0 contains the unique container number i am trying to filter on. the second column is a location for the container wich is a text field.
Comment