Access 2000 format in Access 2002

G

Guest

I've made some changes to a client's Access 2000 database in Access 2002
which purports to continue working in the same 2000 format. However, when
the client tries to use the database now, they keep getting VBA reference
errors because the modules now expect versions 10 rather than 9 of the Excel,
Outlook and Word object libraries. Is there any way around this?

Thanks.
 
G

Guest

Thanks Allen. I've read the file you suggest. Does this mean (e.g. with
Outlook) that as long as I replace all my lines such as:
Dim myOutlook As New Outlook.Application
Dim myEmail As Outlook.MailItem

with:
Dim myOutlook As Object
Dim myEmail As Object
Set myOutlook = CreateObject("Outlook.Application")
Set myEmail = myOutlook.CreateItem(olMailItem)

the rest of the code will work OK? What worries me is that I still need to
tick the reference to Microsoft Outlook 10 Object Library to get the last
line to work (else "olMailItem" isn't recognised) - won't VBA still be
looking for this version of the library when the code is run in the older
version of Access?

Thanks,
Martin
 
A

Allen Browne

Late binding should work without the reference, if I understand correctly.
 

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