Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2014, 10:33 AM
donaldadams1951 donaldadams1951 is offline Word 2010 VBA - Run a stored procedure that returns 1 row of data Windows XP Word 2010 VBA - Run a stored procedure that returns 1 row of data Office 2010 32bit
Advanced Beginner
Word 2010 VBA - Run a stored procedure that returns 1 row of data
 
Join Date: Dec 2013
Location: San Francisco Bay Area
Posts: 37
donaldadams1951 is on a distinguished road
Default Word 2010 VBA - Run a stored procedure that returns 1 row of data

Word VBA newbie...

I need to run an existing MS SQL stored procedure with 2 parameters and it will return a row of data. I've seen examples on how to call the stored procedure, but do not know how to read the data it sends back. vba
Reply With Quote
  #2  
Old 03-13-2014, 09:30 PM
macropod's Avatar
macropod macropod is offline Word 2010 VBA - Run a stored procedure that returns 1 row of data Windows 7 32bit Word 2010 VBA - Run a stored procedure that returns 1 row of data Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It's not something I've used, but this code http://www.ozgrid.com/forum/showthread.php?t=78325 shows how to obtain the query results. In particular, see the 'myReturn = rst.Fields("myVariable").value' line near the end.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-14-2014, 07:00 AM
donaldadams1951 donaldadams1951 is offline Word 2010 VBA - Run a stored procedure that returns 1 row of data Windows XP Word 2010 VBA - Run a stored procedure that returns 1 row of data Office 2010 32bit
Advanced Beginner
Word 2010 VBA - Run a stored procedure that returns 1 row of data
 
Join Date: Dec 2013
Location: San Francisco Bay Area
Posts: 37
donaldadams1951 is on a distinguished road
Default Thank you...

Thank you for the link. Just what I needed.
Reply With Quote
Reply

Tags
ado recordset



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2010 VBA - Run a stored procedure that returns 1 row of data How to release hard returns? markg2 Word 13 05-08-2023 01:38 PM
Word 2010 VBA - Run a stored procedure that returns 1 row of data Word 2010 cannot find data source wsdb Mail Merge 7 09-05-2012 03:16 PM
Easy send/save Excel data to Database Table or Stored Procedure TonyHarvard Excel 3 07-11-2012 12:43 PM
Word 2010 discard editing data not working Ravenant211 Word 3 02-16-2012 07:25 PM
excel where is procedure being called from davids67 Excel Programming 1 11-18-2011 06:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft