PC Review


Reply
Thread Tools Rate Thread

Access 2000 format in Access 2002

 
 
=?Utf-8?B?TWFydGlu?=
Guest
Posts: n/a
 
      6th Jul 2005
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.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      6th Jul 2005
If you reference the other Office libraries (such as Excel or Outlook)
across different versions, use late binding.

For more info, grab the file in this link:
http://support.microsoft.com/default...b;en-us;260410

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Martin" <(E-Mail Removed)> wrote in message
news:14665B61-6F9C-4425-9348-(E-Mail Removed)...
> 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.



 
Reply With Quote
 
=?Utf-8?B?TWFydGlu?=
Guest
Posts: n/a
 
      7th Jul 2005
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

"Allen Browne" wrote:

> If you reference the other Office libraries (such as Excel or Outlook)
> across different versions, use late binding.
>
> For more info, grab the file in this link:
> http://support.microsoft.com/default...b;en-us;260410
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Martin" <(E-Mail Removed)> wrote in message
> news:14665B61-6F9C-4425-9348-(E-Mail Removed)...
> > 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.

>
>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      7th Jul 2005
Late binding should work without the reference, if I understand correctly.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Martin" <(E-Mail Removed)> wrote in message
news:4E3E6DA8-14D5-4303-A180-(E-Mail Removed)...
> 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
>
> "Allen Browne" wrote:
>
>> If you reference the other Office libraries (such as Excel or Outlook)
>> across different versions, use late binding.
>>
>> For more info, grab the file in this link:
>> http://support.microsoft.com/default...b;en-us;260410
>>
>>
>> "Martin" <(E-Mail Removed)> wrote in message
>> news:14665B61-6F9C-4425-9348-(E-Mail Removed)...
>> > 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2000 file format vs. Access 2000 - 2002 file format Buck Microsoft Access 5 26th Jan 2006 10:14 AM
Access 2002 - 2003 file format vs. Access 2000 file format =?Utf-8?B?QWNjZXNzSGVscA==?= Microsoft Access Database Table Design 1 20th Jan 2006 11:55 PM
Access 2002 - Creating database in 2000 format =?Utf-8?B?YWtsaW5n?= Microsoft Access Getting Started 4 6th Mar 2004 07:59 PM
Access 2000 file format to 2002 John Microsoft Access Database Table Design 4 21st Feb 2004 10:38 PM
Access 2000 vs. 2002/2003 file format David Veale Microsoft Access Database Table Design 2 2nd Dec 2003 06:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.