Hello, my name is Giulio and i'm newbie with Access.
I'm trying to make this function, but i would like find part of the field "consulente/specialista"
Any tip?
Function SearchCriteria20()
Dim ConsulenteCstr As String
Dim Task, strCriteria As String
If IsNull(Me.CasellaCombinata64) Then
ConsulenteCstr = "[consulente/specialista] LIKE '*" & CasellaCombinata64.Value & "*'"
Else
ConsulenteCstr = "[consulente/specialista] = '" & Replace(Me.CasellaCombinata64, "'", "''") & "'"
End If
strCriteria = ConsulenteCstr
Task = "Select * from [Query Pratiche Studio Totale 2] where " & strCriteria
Me.ComboBoxCustomerSearch.Form.RecordSource = Task
Me.ComboBoxCustomerSearch.Form.Requery
End Function