Hi all,
I'd like to use the equivalent of Like in an SQL query via VBA.
The code below finds the exact value :-
I believe I may need to use '%' or '*', but I'm struggling with the syntax...
Thanks in advance.
I'd like to use the equivalent of Like in an SQL query via VBA.
The code below finds the exact value :-
Code:
strSQL = "SELECT tblBrokerages.ID, tblBrokerages.Brokerage_Name AS [Brokerage Name], tblBrokerages.Broker_Code AS [Broker Code] FROM tblBrokerages WHERE tblBrokerages.Brokerage_Name = '" & Me.Text76.Value & "';"
I believe I may need to use '%' or '*', but I'm struggling with the syntax...
Thanks in advance.