Link to home
Create AccountLog in
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!
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of FCapo
FCapo

ASKER

Awesome thank you!