web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Pass a Parameter to an SSRS Report from Dynamics GP Window

(0) ShareShare
ReportReport
Posted on by

I have added a button to the Sales Transaction Entry window in GP.  It launches the SSRS report URL just fine.  I want to pass the CustomerID as a parameter to the report and have it execute immediately as opposed to the user having to enter the Customer Number.  The code is below.  Is this possible?  How do I set the parameter value and pass it to the report?

Thanks!

Private Sub PushButtonM233_Changed()
    Dim objExplorer
           
    Set objExplorer = CreateObject("InternetExplorer.Application")
    'objExplorer.Navigate "http://somewbsite/" & SalesTransactionEntry.DocumentNo & ""
    objExplorer.Navigate "uksql3.intl.lcl/.../ReportViewer.aspx" & SalesTransactionEntry.CustomerID & ""
    objExplorer.Visible = 1
End Sub 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Obviously, I am using VBA to do this.  The name of the Parameter on the SSRS report is @Customers.  And that first objExplorer.Navigate line of code is commented out.  Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

#2
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans