I have the following SQL in some vba. I can't seem to figure out the syntax to get the right parenthesis for the subquery. Cany ideas?
strsql = "SELECT wall.wclient " & _
"FROM wall " & _
"INNER JOIN client " & _
"ON wall.wclient = client.clnum " & _
"WHERE wall.wpartype = 'c' and clnum IN " & _
"(SELECT LEFT(fmatter,5) FROM folder
WHERE fbarcode = " & " '" & glsFolder & "'"
Thanks.
strsql = "SELECT wall.wclient " & _
"FROM wall " & _
"INNER JOIN client " & _
"ON wall.wclient = client.clnum " & _
"WHERE wall.wpartype = 'c' and clnum IN " & _
"(SELECT LEFT(fmatter,5) FROM folder
WHERE fbarcode = " & " '" & glsFolder & "'"
Thanks.