Hello Access experts!
I have a form where are listed all the records which have of course multiple fields. I have a number of buttons that do the filtration as per field, by writing what to search on a beside textbox.
The code for each filter is the following:
[/code]
If IsNull(Me.Testo152) Then
Me.FilterOn = False
Else
Me.Filter = "TIPO Like '" & Me.Testo152.Value & "*" & "'"
Me.FilterOn = True
End If
[code]
With this code I just filter only with one field.
I would like to filter the records with the other filters, but taking into account the filtration of the other fields.
For example, if I type in "TIPO" DCT and I have 3 records with this but different employee number, for example 11 and 2, I would like to do a further filtration by writing 11 on the employee field and have the DCT done by the employee 11.
I think that I need to change something in the Me.filter instruction, maybe adding some AND or OR...
Please help me I'm really stuck on this
Beppe