PDA

View Full Version : Invalid forward reference error



lifeson
09-05-2007, 02:46 AM
I am getting an error message
"Inavlid forward reference, or reference to uncompiled type"

When trying to add a control to an existing form in my project.
Any ideas what causes this or how to fix?

rory
09-05-2007, 02:53 AM
What control are you adding? Can you debug-compile the project OK before you try to add the control?

rory
09-05-2007, 02:59 AM
What control are you adding? Can you debug-compile the project OK before you try to add the control?

lifeson
09-05-2007, 03:00 AM
It was a multi page control
I clicked on Debug comile vba project menu option and nothing happened. Is anything supposed to?

rory
09-05-2007, 03:15 AM
It checks your code for errors - if you don't see anything then there aren't any syntax or reference errors there.
Are you adding the control manually and, if so, do you get the error as soon as you drop it on the form?

lifeson
09-05-2007, 03:53 AM
Yes i was adding manually
It appears to be working now
I can add the control, but I am getting other errors now when i try to copy existing controls onto the multi page control.
I'll investigate a bit further, these errors may not be related.

rory
09-05-2007, 04:00 AM
Sounds like you may have some corruption developing in the workbook. Might be time to export and reimport all your objects to a new blank workbook.