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 / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Put resutls of StoredProc using Passthrough query into an Access T

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BillyRogers - 20 Jul 2007 21:40 GMT
I have this code that runs a (SQL Server) stored procedure using a
passthrough query.  Is there a way to change this code so that it creates an
Access table with the results in it?

Private Sub btnAccessAssocDemoVol_Click()
   
Call AssocConcat

Dim qdfPassthrough As DAO.QueryDef
Dim rsCurr As DAO.Recordset
Dim strSQL As String

  strSQL = "Exec [GetAssocDemographics&Volume&CB] @MonthYearList='" &
MyAssocDates & "', @OrderList='" & MyAssocNums & "'"

  Set qdfPassthrough = CurrentDb().QueryDefs("qryPassThru")
  qdfPassthrough.Sql = strSQL
 
  DoCmd.OpenQuery "qryPassThru", acNormal, acEdit
 

End Sub
Signature

Billy Rogers

Dallas,TX

Currently Using  SQL Server 2000, Office 2000  and Office 2003

Douglas J. Steele - 20 Jul 2007 23:32 GMT
Create a MakeTable query based on qryPassThru

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I have this code that runs a (SQL Server) stored procedure using a
> passthrough query.  Is there a way to change this code so that it creates
[quoted text clipped - 18 lines]
>
> End Sub
 
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.