Advertisement

04.03.2008 at 01:06PM PDT, ID: 23294043
[x]
Attachment Details

How do I run a stored procedure from VBA code?

Asked by summitMIS in Microsoft ADP, SQL Query Syntax, Access Coding/Macros

Tags: SQL 2005/Access 2007 ADP

I have a cmd button on a form that I want to call a Stored Procedure.  I need to pass a value from a field on the form - "month" which would have values such as January 2008, February 2008, etc.  I want to pass this value to the Stored Procedure.  In the SP I use this value to populate a field in an Append function.   How do I go about writing this?

This is in Access 2007, ADP connected to SQL 2005 backend.

ThanksStart Free Trial
[+][-]04.03.2008 at 01:29PM PDT, ID: 21276645

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.

 
[+][-]04.04.2008 at 05:12AM PDT, ID: 21280791

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

Zones: Microsoft ADP, SQL Query Syntax, Access Coding/Macros
Tags: SQL 2005/Access 2007 ADP
Sign Up Now!
Solution Provided By: DanielWilson
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628