Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

VBA code to add button to one window that will open another window

Posted on by 3,954

Does anyone have this kind of VBA code written that they'd like to share?  Here's an example.  One of our customers would like a new button added to the Receivables Transaction Inquiry - Customer window.  When they click on this button, the Customer Payment Summary Inquiry window opens.

*This post is locked for comments

  • DebN Profile Picture
    DebN 3,954 on at
    RE: VBA code to add button to one window that will open another window

    Thank you so much for the code!  That did the trick!

  • Verified answer
    Harold Worby Profile Picture
    Harold Worby 1,325 on at
    RE: VBA code to add button to one window that will open another window

    Add the button with Modifier

    Add both forms ,the button and the CustomerID fields to VB

    Then in the Button Change Event

               Cust=Me.CustomerID

               Microsoft_Dynamics_GP.CustomerPaymentSummaryInqui.Open

               Microsoft_Dynamics_GP.CustomerPaymentSummaryInqui.CustomerID = Cust

               DoEvents

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans