Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 19th, 2007, 03:57 PM
Authorized User
Join Date: Jul 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using stored procedure to open Access reports

I am trying to find out how to integrate stored procedure with an Access report. For test purpose, I am trying the following procedure out of pubs database:
create procedure sp_gettitles
   @type char(12)
   select * from titles
   where type = @type

Now if I run the above stored procedure using the following paramters (in query analyzer)
exec 'busniess'
I will obtain a recordset in query analyzer. Now I need to find a way that I can use a form to allow the users to input the parameter and in turn the access report will be generated corresponding to this parameter. I appreciate any direction/help on this issue. Thanks.
Old July 19th, 2007, 08:37 PM
Friend of Wrox
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts

Lookup "Passthrough Queries" in Access... they will do what you want.

--Jeff Moden

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running stored procedure in Access VBA Bryon Burbage Access VBA 0 July 21st, 2006 09:14 AM
how to use stored procedure in Access hertendreef ADO.NET 1 June 3rd, 2006 03:04 AM
Stored Procedure Error in MS Access belete Access 2 June 24th, 2004 02:05 PM
How to add a stored procedure in Access badgolfer Access 2 June 17th, 2004 08:13 PM

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