Switchboard Compile Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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).
 
Back
Top