troubleshooting Question

SQL query and VBA

Avatar of Hakum
HakumFlag for Denmark asked on
Microsoft SQL ServerVBASQL
5 Comments4 Solutions167 ViewsLast Modified:
Hi guys, Im trying to figur out a Query and im not that strong in SQL querys at all.. please advise

From Excel with a Ado. connection ( which works just fine) i need something like:

Select * FROM Tblname WHERE [namecol] = "'" & Name & "'" AND WHERE [Workcol] = "'" & work &"'"

Then msgbox result

Please advise

Thank you in advance
ASKER CERTIFIED SOLUTION
Vitor Montalvão
IT Engineer
Join our community to see this answer!
Unlock 4 Answers and 5 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 4 Answers and 5 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