Thursday, July 19, 2012

The microsoft_dynamics_gp.vba project references some objects that cannot be found.

This occurs because a field that was added to vba has been removed from your customized form or report.


To manually remove the vba reference to that field




1. Export your Form/Report with VBA to a .package file (Tools>>Customize>>Customization Maintenance).
2. Open the .package file with notepad and find the references to the field you need to remove.
3. Remove any references to your field. Most importantly, remove the WindowField reference. This is how VBA knows about the field. It will look like this:

WindowField "Transfer Button"
{
ArrayIndex "0"
DisplayName "Transfer"
Local "false"
ProgrammerName "Transfer Button"
}


or

ReportField "String1"
{
AccumulatorType "0"
ArrayIndex "0"
BandLevel "0"
BandType "0"
FieldName "String 1"
TableName ""
}


4. Save your .package file and import the modified version.(Tools>>Customize>>Customization Maintenance).


Original post
http://mbsguru.blogspot.com/2009/06/removing-reference-to-field-or-object.html

No comments:

Post a Comment