Avatar of FCapo
FCapo
 asked on

Filter

Hello,

I'm trying to filter my bindingsource but I get an error when the name contains an apostrophe  '

bindingsource.Filter = "marketClientComp ='" & marketingList.marketingId & "'"

the error I get is: Exception thrown: 'System.Data.SyntaxErrorException' in System.Data.dll Additional information: Syntax error: Missing operand after 'Urfé' operator.

I don't know beforehand what the filtered value will be because it comes from the user clicking another datagridview

Thanks for the help!
Visual Basic.NET.NET Programming

Avatar of undefined
Last Comment
FCapo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
FCapo

ASKER
Awesome thank you!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck