Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Added Report & Fields to Visual Basic, but VBA can't recognise

Posted on by 3,795

I have added the Report to Visual Basic and also for the Fields (calculated field in the report printout)

Then the same calculated field name is used in the VBA coding. but it cannot recognize it. I just cannot understand why...when i tried to compile it show :

Error Message : Compiler error - Variable not defined

Could you please advise me what other possible reasons for the error. Thank you so much in advance.

*This post is locked for comments

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: Added Report & Fields to Visual Basic, but VBA can't recognise

    William,

    Did you added that field also in Visual Basic(Tools-->Add Field to Visual Basic)

     

    Thanks
    Sandip

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