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
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!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148