Affichage des articles dont le libellé est References.AddFromFile. Afficher tous les articles
Affichage des articles dont le libellé est References.AddFromFile. Afficher tous les articles

References.AddFromFile

vendredi 20 mars 2015

I have an Access 2010 database that uses an Address Utility that requires a reference to pdf.ocx.



Things work fine on Windows7 but I need it to run with Access Runtime on XP. The database runs OK but can't pick up the Address Utility - 'unable to create object' - I suspect that the reference to pdf.ocx is missing.



In order to automatically create the reference needed, have inserted code into the database (working in Windows7):



Application.References.AddFromFile "C:\Windows\System32\pdf.ocx"



this gives the 'file not found' error even though I can see pdf.ocx in System32 and the database has actually already got the reference.



Should I be referencing a newer version of the pdf ocx?



Any thoughts would be much appreciated.

References.AddFromFile

Labels