Access Switchboard: Class not registered

APD Toronto
APD Toronto used Ask the Experts™
on
Hi Experts,

10 years ago or so, I wrote a small Access app (single user), that I've used regularly ever since without flaws, where I've also used the Access Switchboard.

For 2 weeks now, i've been getting Class not registered on line
Set con = Application.CurrentProject.Connection

This is using the original Acces built-in switchboard f\code.

Any ideas will be appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
Anything changed in your system in the last 2 weeks?
Do you compile the code and compact the DB on a regular basis?

Can you tell us a bit about the conditions under which this error occurs?

I have long since abandoned the Access switchboard because of issues like this, and the inherent complexity.
(VBA Code, Dedicated table, Custom form/control Properties Functions, Limited design changes ...etc)
Twice, I got "confident" and tried to "customize" the switchboard, ...both times I lived to regret that decision...

I am sure there may be a simple solution here, ...
But I have never had a situation where the switchboard manager had an advantage over a Menu system I could create my self.
APD TorontoSoftware Developer

Author

Commented:
Just now i did compile, and compact... still same error

2 weeks ago, I was working on another Access file outputting to Excel, the only thing tjhere was that my client has Excel 07 (v.12), and I 10 (v.14), so i Installed 07 on my PC, but it got buggy with 2 Excels, so I removed 07.

I dont knowe if this led to my Switchboard Err.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
Top Expert 2007

Commented:
Looks like you are missing a Reference to ADO ... since the Switchboard uses ADO.

mx
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
Then this sounds like it may be a "reference" issue.

But this topic is not my specialty...

I am sure another Expert will be along shortly...
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
Top Expert 2007

Commented:
ADO
President / Owner
Most Valuable Expert 2017
Most Valuable Expert 2012
Commented:
I'd run a repair of Office.

"Class not registered" on a regular Access object is more then a reference.

Jim.
Top Expert 2009

Commented:
That old switchboard is way overdue for retirement.  See my Access Archon article on a New Style Main Menu for a more attractive and easier to modify version.  Here is a link for downloading it:

http://www.helenfeddema.com/Files/accarch212.zip

and here is a screen shot:

New Style Main Menu
APD TorontoSoftware Developer

Author

Commented:
I  tried ADO 2.1, 2.8, 6.1 - Same err, but it does compile
APD TorontoSoftware Developer

Author

Commented:
Thank you all.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial