J
Jon P via AccessMonster.com
Hi,
I am trying to launch a report from a module in my db using the below text.
DoCmd.OpenReport "rptM16Report", acViewPreview, "teamleaderemail = Bloggs,
Fred"
Unfortunately on the report because Bloggs, Fred contains a comma it would
have to appear as "Bloggs, Fred" however when I do this it cause a "Expected
End Of Statement" error.
I have tried using ' instead of " and also putting the name into a string and
using that to filter the report.
Unfortunately I am working with a database that cannot be modified and am
unable to remove the comma.
Any help would be greatly appreciated.
Cheers
JP
I am trying to launch a report from a module in my db using the below text.
DoCmd.OpenReport "rptM16Report", acViewPreview, "teamleaderemail = Bloggs,
Fred"
Unfortunately on the report because Bloggs, Fred contains a comma it would
have to appear as "Bloggs, Fred" however when I do this it cause a "Expected
End Of Statement" error.
I have tried using ' instead of " and also putting the name into a string and
using that to filter the report.
Unfortunately I am working with a database that cannot be modified and am
unable to remove the comma.
Any help would be greatly appreciated.
Cheers
JP