Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 June 9th, 2006, 03:50 AM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ashg657
Default Executing an UPDATE Stored Procedure

Hi all,
I have a very simple update stored procedure called "pricesupdate"
I need this to run on the open event on one of my forms.
To do this I use VBA. My question is, how can I run and update stored procedure from VBA?
I would have thought it be as simple as:
"DoCmd.OpenStoredProcedure....etc" but no, tried that and get error saying "Microsoft Access Cannot Find...." so whats the answer guys? This one is annoying me because surely it should be so simple....or am i wrong?
Thanks in advance,
Ash.

 
Old June 9th, 2006, 06:29 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

So this is a stored procedure on a SQL Server? Or is this some other routine on the Access database?

You can write such an Update function in either a query or in code that you can execute on the form's On Load event. I can help with that, too.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Tables in Stored Procedure Talsiter SQL Server 2005 1 April 10th, 2006 03:32 PM
Create and executing an oracle stored procedure Venstar Oracle 1 January 10th, 2006 05:10 AM
Executing a stored procedure from ASP tlbacon527 Classic ASP Databases 2 January 23rd, 2004 03:50 PM
Executing a Stored Procedure using ASP. treadmill Classic ASP Databases 3 July 24th, 2003 04:21 PM





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