Question Status

Verified
Waqas Butt asked a question on 9 May 2013 8:42 AM

HI,

We are facing a strange issue. We have customized Payable manual payment entry using VBA & Modifier. There is one button and behind it there is VBA Code to print the crystal report.

It works fine on all clients, but on one newly installed client ( Both XP & Windows 7) we are getting the compilation error after package deployment.

Compile Error:

"Sub Or Function Not Defined"

We did the following to resolve this 

  1. Using Customization Maintenance, export all the resources by using VBA as packages.
  2. Exit Microsoft Dynamics GP and rename, delete, or move all the *.VBA files.
  3. Start Microsoft Dynamics GP and use Customization Maintenance to import the .package files

It works fine but as soon as you log out Dynamics GP & login back it gives the same error.

Any Idea why this is happening ?

Thanks,

Waqas

Reply
Verified Answer
Waqas Butt responded on 13 May 2013 3:24 AM

Hi,

Have sorted the issue. when debugging by making all functions public ( from Private ) got the exact error and it was related to VBA6.dll missing issue.

Now have updated the registry with correct VBE6.dll and it resolved the issue.

Thanks,

Waqas

Reply
Terry Blaser responded on 9 May 2013 10:00 AM

Have you tried stepping through the code to see where the error is coming up?

Terry Blaser

Dex and SQL Developer

Straight Arrow Consulting, Inc.

310-272-6240m

Reply
Waqas Butt responded on 9 May 2013 3:31 PM

It is on the load  event for a custom VBA Form.

The code is as follows

Load TLREPORT

TLREPORT.show

Thanks,

Waqas

Reply
Waqas Butt responded on 10 May 2013 11:02 AM

Any support ???

Reply
Sandip Jadhav responded on 11 May 2013 2:10 PM

Waqas,

Can you please check if you see all customzed fields on new client?

Thanks

sandip

Thanks Sandip Jadhav Cell : +1.210.440.9855 Dynamics GP Blog : http://sandipdjadhav.blogspot.com/
Reply
Waqas Butt responded on 13 May 2013 3:17 AM

Hi Sandip,

Yes it does show all fields.

Thanks,

Waqas

Reply
Verified Answer
Waqas Butt responded on 13 May 2013 3:24 AM

Hi,

Have sorted the issue. when debugging by making all functions public ( from Private ) got the exact error and it was related to VBA6.dll missing issue.

Now have updated the registry with correct VBE6.dll and it resolved the issue.

Thanks,

Waqas

Reply