Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

Display ADO recordset

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BillyRogers - 26 Dec 2006 16:39 GMT
I've inherited maintenance responsiblity for an Access db that uses dynamic
SQL and passthrough queries.   The code is very problematic and susceptible
to problems if a user tries to stop a query while running.

I want to use ADO and stored procedures to speed up the queries and prevent
problems.  Currently the code is called from a button on a form and displayed
like a saved query--in  a spreadsheet like grid.   I want the recordset
returned from the stored procedure to show up just like a regurlar saved
query in access when the user presses the button.   Is this possible?  I know
how to make the stored procedure and just don't know how to display it in a
grid like a saved query.

I'm hoping this is possible so the users won't notice any difference except
that it runs fasters and crashes less often.

Signature

Billy Rogers

Dallas,TX

Currently Using  SQL Server 2000, Office 2000  and Office 2003

Rick Brandt - 26 Dec 2006 16:45 GMT
> I've inherited maintenance responsiblity for an Access db that uses
> dynamic SQL and passthrough queries.   The code is very problematic
[quoted text clipped - 11 lines]
> I'm hoping this is possible so the users won't notice any difference
> except that it runs fasters and crashes less often.

Just call the StoredProcedure in a Passthrough query.  The results will be shown
in a grid "just like a saved query" because it will actually be a saved query.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

BillyRogers - 26 Dec 2006 16:57 GMT
Great! thanks for the help.
Signature

Billy Rogers

Dallas,TX

Currently Using  SQL Server 2000, Office 2000  and Office 2003

> > I've inherited maintenance responsiblity for an Access db that uses
> > dynamic SQL and passthrough queries.   The code is very problematic
[quoted text clipped - 14 lines]
> Just call the StoredProcedure in a Passthrough query.  The results will be shown
> in a grid "just like a saved query" because it will actually be a saved query.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.