79570986

Date: 2025-04-12 22:08:36
Score: 1
Natty:
Report link

This is the solution I came up with using Allen Browne's Concatenate function:

sAssySearch = ConcatRelated("[AssyPN]", "tblBOMr14", "PN =""" & Me.cboSearch.Text & """", "[AssyPN]", "' OR PN = '") & "'"
        
strFilter = "PN Like " & sSearch & " OR PN = '" & sAssySearch

It took a few stabs to get all the single quotes and double quotes right but it works!

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Noel de la Rosa