M
Morris
I've got this:
strSQL = "UPDATE FilesToBuild SET FilesToBuild.GreenLight = True WHERE
"
strSQL = strSQL & "NameOfFile like '" & ID & "%' AND FilesToBuild.ToRun
= True"
In other words - I need to update those records that START with ID (eg
"41 bla bla bla" but not "123 bla bla week 41 bla bla") and have the
ToRun flag set to true.
VBCode screams an error on the "%" should I use asterisk?
[...] like " & chr(34) * ID % chr(34) & "AND [...] ?
cheers
strSQL = "UPDATE FilesToBuild SET FilesToBuild.GreenLight = True WHERE
"
strSQL = strSQL & "NameOfFile like '" & ID & "%' AND FilesToBuild.ToRun
= True"
In other words - I need to update those records that START with ID (eg
"41 bla bla bla" but not "123 bla bla week 41 bla bla") and have the
ToRun flag set to true.
VBCode screams an error on the "%" should I use asterisk?
[...] like " & chr(34) * ID % chr(34) & "AND [...] ?
cheers