I have two forms for a table called Locations. The first is Location List which is a split form contain a datasheet of all the locations. The second is Location Detail where I can view/edit more information about the location. The datasheet contains a link to open the location detail for the selected record. The location detail form has two buttons. One is for Save and New and the other is for close.
If I open the Location Detail form without the location list open everything works fine. If I have the Location List open and then open the Location Detail form the Save and New button works fine. If I click the Close button I get an error. The close button is just a macro with just a close window action.
The error I get is: The object doesn't contain the Automation object 'PID.'
PID is a primary key field in an unrelated table. I've gone through every control on each form looking for a reference to PID in all the properties, macros, and VBA code and have found nothing. I have run a compact and repair and done a decompile and still I get this error.
I don't get this error with any other forms in my application.