troubleshooting Question

Filter

Avatar of FCapo
FCapo asked on
Visual Basic.NET.NET Programming
2 Comments1 Solution372 ViewsLast Modified:
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
Éric Moreau
Senior .Net Consultant
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros