broken references issue

C

chrisderoover

Hello,
I have an Access application that uses some Excel functionality and
therefore lists the Excel object library in its references.
Recently we upgraded some clients to Access 2003, the others are using
Access XP. If I save the db in Access 2003, opening it in Access XP
results in an error.
I understand this is because the Excel 11 object library is not present

on those machines but I cannot found the workaround in code.
If I loop through the references using the .IsBroken property, this
raises an error (err.number 48) for the Excel reference. Because of the

same error I'm not able to remove the reference. In fact I cannot
access any method or property for the faulty reference. And as long as
I don't remove it, Access refuses to load the appropriate Excel 10
reference.
Any suggestions are welcome.
tia
Chris
 
C

chrisderoover

Thanks for replying Doug. I'll probably switch to late binding. On the
other hand I am still wondering whi I can't use the .isbroken property
on the Excel reference object.
Chris
 
D

Douglas J Steele

As MichKa's article tries to explain, if you don't check quickly enough, the
broken reference might prevent your code from running properly.
 

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