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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
HP-11021721-0 Profile Picture

HP-11021721-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans