Trying to remove error from conflicting code

Joined
Oct 1, 2023
Messages
1
Reaction score
0
I have a continuous form that I can filter using a combo box and a textbox that reveals the current record. Individually, the code for the individual controls work fine. But because the two cause a conflict that I am trying to eliminate. Any help will be appreciated.

Cheers,
Jake


Here is the code and the error message:

Private Sub Form_Current() txtRecdCt2.SetFocus txtRecdCt2.Text = Form.CurrentRecord End Sub Private Sub cboLUTCategory_AfterUpdate() Me.Filter = "Category = '" & Me.cboLUTCategory & "'" Me.FilterOn = True End Sub

1696219053502.png
 
Top