﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Partner software applications/questions  / How to exec macro from MS Access? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Fri, 05 Sep 2008 10:13:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to exec macro from MS Access?</title><link>http://www.teradata.com/teradataforum/Topic9916-12-1.aspx</link><description>It depends on what you are doing in Access. If you are using VBA with ADO, you can use the nextResultSet method. You can also build a "MakeTable Query" on top of the pass-through query. Search MDSN, Google, etc. for more information on Access and "multiple result sets"</description><pubDate>Tue, 04 Dec 2007 15:01:49 GMT</pubDate><dc:creator>Fred Pluebell</dc:creator></item><item><title>RE: How to exec macro from MS Access?</title><link>http://www.teradata.com/teradataforum/Topic9916-12-1.aspx</link><description>Hello,Could you expand as to how to work around?  Again, we can execute a stproc (MS Access or Sybase) that has multiple statements, but only 1 select (at the end of the stproc) and this works OK as a pass-through query in MS Access.Thanks for the information,Elle</description><pubDate>Tue, 04 Dec 2007 11:16:49 GMT</pubDate><dc:creator>Elle</dc:creator></item><item><title>RE: How to exec macro from MS Access?</title><link>http://www.teradata.com/teradataforum/Topic9916-12-1.aspx</link><description>A Teradata macro is a "multi-statement request" that can return multiple result sets. That requires special handling / workarounds within MS Access or any other client application. In particular, INSERT/UPDATE/DELETE will return "empty" result sets to allow passing back status information.The same issue would surface with a SP in some other database that attempted to return multiple result sets - but you typically would handle INSERT/UPDATE/DELETE status within the SP and not return a result set to the caller for those.</description><pubDate>Fri, 30 Nov 2007 18:20:37 GMT</pubDate><dc:creator>Fred Pluebell</dc:creator></item><item><title>How to exec macro from MS Access?</title><link>http://www.teradata.com/teradataforum/Topic9916-12-1.aspx</link><description>Hello,I am trying to "exec" a macro from MS Access as a pass-through query.  However, if the macro has insert/update/delete then a select, no data will be returned with an error of "Pass-through query with ReturnsRecords property set to True did not return any records. (Error 3325)".  Only when the macro is the select will data be returned.  It appears as though the macro is "being expanded" by MS Access as multiple lines - which it won't process, only a single line.  BTW, it will work with other DBMS stprocs.  Could this be a driver problem? or the correct behavior?Thanks</description><pubDate>Thu, 29 Nov 2007 15:15:26 GMT</pubDate><dc:creator>Elle</dc:creator></item></channel></rss>