Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2004, 01:16 PM
Authorized User
 
Join Date: Jun 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default MS SQL Stored procedure and VBA

I have a stored procedure that requires one parameter and creates some temporary tables. It runs perfectly in query analizer but when I try it from a click event in Access (ADP) it tells me that one of the temporary tables can not be found. I also looked into using DOCMD.openstoredprocedure but it does not provide a maner for sending the parameter.

The code im using is simple;

dim strMyID as integer
strMyID = me.SS_ID.value 'This is from a field in my form.
docmd.RUNSQL "exec spCALC " & strMyID


:(

Thanks,
Jesse
__________________
Thanks,
Jesse





Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO: create stored procedure in Ms access Kaustav Access 5 December 19th, 2014 01:14 PM
Stored procedure and VBA jesseleon Access VBA 7 September 15th, 2011 12:46 PM
The MS HowToDemo Stored Procedure TomW VB Databases Basics 10 March 5th, 2008 11:38 AM
Passing Variable MS Proj to SQL Stored Procedure Abaxt Access VBA 2 July 7th, 2005 11:05 AM
output parameter from MS SQL stored procedure nav1 VB How-To 0 March 14th, 2005 05:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.