I'm a little confused by your use of Concatenate(). AFAIK, neither Access
or JetSQL have such a function. Although Excel has a Concatenate function,
it doesn't work the way you suggest (the arguments you want combined are
separated by commas). I am therefore ignoring the Concatenate() aspect of
your post & will simply address how the string should be constructed so
Jet SQL would recognize it:
"Select [resource name] FROM [Project Resources] WHERE prodid =" &
[prodid] & " And [resource role]='PM' "
Note: the space between final ' and " is only there for the clarity of
this post. Remove it.
HTH,
PM: Concatenate("Select [resource name] FROM [Project Resources] WHERE
prodid =" & [prodid] And [resource role]="PM")
the -And [resource role]="PM"- portion is not working.
Can anyone help?