Error message shown sometimes upon the first launch of GP, and when you open the Dynamics.txt, a list of controls displayed.
When the user creates a new controls using Modifier and adds those controls to VBA, VBA will create references for those fields in the VBA file, while the modifier stores those objects in the FORMS.Dic.
So if the FORMS.Dic deleted, or those fields were deleted from the Forms.dic this message will keep showing up informing you that those objects does not exist and you VBA code will not work.
The solution for this is one of two:
1. Since there is no way to "Remove Field from VBA" then you will need to follow steps below:
A. Copy the VBA code into notepad.
B. Remove the complete form from VBA.
C. Re-add the form to VBA.
D. Add ONLY needed fields to VBA
E. Replace your code.
2. If you are looking only to ignore this message and prevent it from being shown, you may need create a file called "DEXVBA.INI" in your WINDOWS folder and place the following code segments inside it:
[General]
NoUnresolvedDialog=TRUE
Hope this helps!
Regards,
--
Mohammad R. Daoud
MCP, MCBMSP, MCTS, MCBMSS
CTO
+962 - 79 - 999 65 85
Dynamics Innovations
daoudm@dynamicsinnovations.com
http://www.dynamicsinnovations.com/
5 comments:
Michael Johnson has another solution for removing invalid references from VBA, checkout his post below:
http://mbsguru.blogspot.com/2009/06/removing-reference-to-field-or-object.html
Okies. I'll be checking this article. Thank you for sharing.
This looks interesting. Thanks for posting.
Hi
I got this message opening Dynamics GP 10 Utilities
i enter user and password but then it hangs up and i cant create a new company
any help with that please?
Thanks
I have modified a clean report and added one calculated field to the report. Added the field to VBA and made one line of code referencing this field. I close Dynamics and it launch utilities and get this error message.
Have no idea why? Any suggestions?
Post a Comment