Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

In Dynamics GP 10's Visual Basic editor, I'm trying to capture data from the EmployeeMaintenance form from the Hire form. I have added both cards to the VB editor and I've added all the fields to those forms that I need. Can anyone show me the syntax to us

Posted on by

I'm trying to use the Hire Card's Save_AfterUserChanged event to get the user data that gets transferred from the Applicant database table to the UPR00100 table after the HireCard is saved and send that to a web service that automatically creates Active Directory accounts.

Also, an important detail to note is that these forms are found in different products. The EmployeeMaintenance form is in the Great_Plains product, and the Hire form is found in the Human_Resources product. I don't know if I need to somehow refer to the product name first. But, when I try this:

Great_Plains.EmployeeMaintenance.EmployeeID, it is flagged as undefined by the vb compiler.

*This post is locked for comments

  • Verified answer
    Carl Meadows Profile Picture
    Carl Meadows 315 on at
    Re: In Dynamics GP 10's Visual Basic editor, I'm trying to capture data from the EmployeeMaintenance form from the Hire form. I have added both cards to the VB editor and I've added all the fields to those forms that I need. Can anyone show me the syntax t

    This sounds like you need to set a reference between the 2 modules.

    Click on the project name (Microsoft Dynamics GP)on the left hand side of the Vb window then go to the tools menu and click 'references'. This will give you a list of 'product's that GP can work with - make sure there is a tick against 'Hire'.

    If you are working in 'Hire ' and want to access GP fields, then swap it around - click on 'Hire', then tools, references and make sure GP is ticked.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans