I have a simple piece of SQL which changes something when something else starts with PQ:
I want to change this to do it when it contains PQ (AAPQBB or AAABBPQ or PQAABB etc.), I am sure the answer is pretty obvious but have spent a whole day trying different possibilities.
Any help would be greatly appreciated.
Code:
DoCmd.RunSQL "UPDATE LogFile SET LogFile.Field3 = Replace([LogFile]![Field3],""AGB"",""4GB"") " & vbCrLf & _
"WHERE (((LogFile.Field3) Like ""AGB*"") AND ((LogFile.Field8) Like ""PQ*""));"
I want to change this to do it when it contains PQ (AAPQBB or AAABBPQ or PQAABB etc.), I am sure the answer is pretty obvious but have spent a whole day trying different possibilities.
Any help would be greatly appreciated.