<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx</link><description>The following Report Writer and VBA example demonstrates how data from any SQL table can pulled into a report regardless of the product the table is related to. This technique can also be used when it is not possible to create the table relationship needed</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Modifying Reports which use Temporary Tables</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#8771391</link><pubDate>Fri, 25 Jul 2008 09:31:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8771391</guid><dc:creator>Developing for Dynamics GP</dc:creator><description>&lt;p&gt;I often get told that it is impossible to customize a report which uses a temporary table, and in particular&lt;/p&gt;
</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#8831531</link><pubDate>Mon, 04 Aug 2008 20:01:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8831531</guid><dc:creator>David Musgrave</dc:creator><description>&lt;p&gt;Posting from DynamicAccounting.net&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdynamicsgp.blogspot.com/2008/07/make-sure-you-are-reading-david.html"&gt;http://msdynamicsgp.blogspot.com/2008/07/make-sure-you-are-reading-david.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#8831564</link><pubDate>Mon, 04 Aug 2008 20:09:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8831564</guid><dc:creator>David Musgrave</dc:creator><description>&lt;p&gt;Posting from Dynamics GP Blogster&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://dynamicsgpblogster.blogspot.com/2008/07/modifying-reports-that-use-temp-table.html"&gt;http://dynamicsgpblogster.blogspot.com/2008/07/modifying-reports-that-use-temp-table.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Using the built-in Report Writer Functions</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#8916264</link><pubDate>Mon, 01 Sep 2008 13:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8916264</guid><dc:creator>Developing for Dynamics GP</dc:creator><description>&lt;p&gt;During my time in the partner channel, I worked with a number of consultants who had a number of problems&lt;/p&gt;
</description></item><item><title>Using VBA with Report Writer</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9023746</link><pubDate>Thu, 30 Oct 2008 09:14:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9023746</guid><dc:creator>Developing for Dynamics GP</dc:creator><description>&lt;p&gt;Most people are aware that you can use Visual Basic for Applications (VBA) with Microsoft Dynamics GP&lt;/p&gt;
</description></item><item><title>Using ADO with VBA with Report Writer</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9023756</link><pubDate>Thu, 30 Oct 2008 09:17:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9023756</guid><dc:creator>Developing for Dynamics GP</dc:creator><description>&lt;p&gt;As a follow on to the Using VBA with Report Writer post, I would like to discuss using ActiveX Data Objects&lt;/p&gt;
</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9187596</link><pubDate>Tue, 09 Dec 2008 20:29:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9187596</guid><dc:creator>GPNUT</dc:creator><description>&lt;P&gt;This works like a charm have been able to implement for several clients... Only thing is there a RetrievealGP10.dll or do you &lt;/P&gt;</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9187602</link><pubDate>Tue, 09 Dec 2008 20:37:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9187602</guid><dc:creator>Scott Stephenson [MSFT]</dc:creator><description>&lt;p&gt;Thanks for the note GPNUT. For release 10.0, there is no RetrieveGlobals.dll and you would instead use the built-in UserInfoGet object that is available. For GP 10.00 you will need at least Service Pack 1 to use this sample. &lt;/p&gt;
</description></item><item><title>RW - Making a One-to-Many Table Relationship behave as One-to-One</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9624643</link><pubDate>Mon, 18 May 2009 03:54:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9624643</guid><dc:creator>Developing for Dynamics GP</dc:creator><description>&lt;p&gt;One of biggest issues people have with the Microsoft Dynamics GP Report Writer is not being able to create&lt;/p&gt;
</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9913745</link><pubDate>Tue, 27 Oct 2009 22:00:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913745</guid><dc:creator>Alfred Erian</dc:creator><description>&lt;p&gt;I used the example in GP 10 SP 4 everything goes fine but the calc. field wouldn't change value&lt;/p&gt;
&lt;p&gt;i try to put a code just to change the value in different events without any luck&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9913917</link><pubDate>Wed, 28 Oct 2009 05:56:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913917</guid><dc:creator>David Musgrave</dc:creator><description>&lt;p&gt;Hi Alfred&lt;/p&gt;
&lt;p&gt;Have you put break points in the code to confirm that it is running and to allow you to trace through the scripts.&lt;/p&gt;
&lt;p&gt;Do you have VBA working elsewhere in the application on this workstation? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The KB below can help with fixing VBA permissions if VBA is not working on this workstation:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612"&gt;https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;929612&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9913929</link><pubDate>Wed, 28 Oct 2009 06:40:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913929</guid><dc:creator>Alfred Erian</dc:creator><description>&lt;P&gt;Hi David&lt;/P&gt;
&lt;P&gt;Thanks for your answer, yes i tried break points it all goes fine and even show that the calc. field value is correct, but when the report come out the value was still empty string.&lt;/P&gt;
&lt;P&gt;It only did work when i changed the code location from Report_BeforeBody event to Report_BeforeRH event&lt;/P&gt;
&lt;P&gt;i did try to but the code back in Report_BeforeBody and move my calc. field to different report sections but with the same result, nothing.&lt;/P&gt;
&lt;P&gt;Alfred&lt;/P&gt;</description></item><item><title>re: RW - Accessing any SQL data from a Report Example</title><link>http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/17/vba-accessing-any-sql-data-from-a-report-example.aspx#9913944</link><pubDate>Wed, 28 Oct 2009 07:25:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913944</guid><dc:creator>David Musgrave</dc:creator><description>&lt;P&gt;Hi Alfred&lt;/P&gt;
&lt;P&gt;Make sure that the Field Type for the place holder calculated field you have created is of type DATA.&lt;/P&gt;
&lt;P&gt;Have you looked at the related articles:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/developingfordynamicsgp/archive/2008/10/30/using-vba-with-report-writer.aspx"&gt;http://blogs.msdn.com/developingfordynamicsgp/archive/2008/10/30/using-vba-with-report-writer.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/developingfordynamicsgp/archive/2008/10/30/using-ado-with-vba-with-report-writer.aspx"&gt;http://blogs.msdn.com/developingfordynamicsgp/archive/2008/10/30/using-ado-with-vba-with-report-writer.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description></item></channel></rss>