Switchboard Compile Error

T

Tony Feole

Good Afternoon,

I have a user that uses a database on a regular basis. As of today, when
they open the database the Switchboard that normally appears (created by
Switchboard Manager) the following error is recieved.

Compile Error:
Invalid Outside Procedure

The code breaks on: Case conCmdCustomizeSwitchboard

I've tried a compact and repair and I even restored the Switchboard from an
old backup and I still have this problem.

Any help would be much appreciated.

Thanks.




--
Regards,

Tony Feole
Invnentory/Distribution Analyst
Ormco Corporation
 
D

Dan Artuso

Hi,
That error means there are line(s) of code that are not contained in a sub-routine
or function.
All procedures are enclosed by either:

Sub XXXXXXX()

End Sub

or

Function XXXXXXX() AS Whatever


End Function

Somehow that line is *outside* any sub or function
How it got there I've no idea but you're going to have to either delete that line
or figure out if it should go somewhere else. Perhaps you could comment it out and
see if any other errors pop up (or ask the guy who wrote the code where it should go).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top