Advertisement

02.17.2006 at 06:49PM PST, ID: 21741759
[x]
Attachment Details

VBA and SQL Query on View with Parameters

Asked by jckingcpa in Miscellaneous Programming

Tags: query, sql, excel, vba, parameter

I want to use a SQL statement in Excel VBA that contains a parameter that restricts what is data is returned from a SQL server view.  I have ALL data from the view populating in Excel okay.  I want to use this view for more than one extract.  My SQL statement is contained within quotes (").  Is there a way to referance parameters (WHERE statement), that a user enters either in a user form (preferance) or a cell in the worksheet?
Thanks.Start Free Trial
[+][-]02.18.2006 at 12:16PM PST, ID: 15990264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.18.2006 at 02:52PM PST, ID: 15991099

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.18.2006 at 05:24PM PST, ID: 15991959

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.18.2006 at 06:38PM PST, ID: 15992374

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2006 at 08:57AM PST, ID: 15994679

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Miscellaneous Programming
Tags: query, sql, excel, vba, parameter
Sign Up Now!
Solution Provided By: Nazermohideeen
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32