Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / December 2005

Tip: Looking for answers? Try searching our database.

Microsoft Off 11/Off 9 Reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dean - 10 Dec 2005 12:15 GMT
I wrote a simple App in Access 2003 but used the 2000 file format.  The
one module Requires reference to Microsoft Office 11.0 Object Library.
However, the person I have the code to has Office 2003 but only
Microsoft Office 9.0 Object Library.

Are they not backward compatible?  Is there something the user can do
to update this to Office 11?
Allen Browne - 10 Dec 2005 12:37 GMT
You must use the correct library for the particular version of Access you
use. Access 2000 is Office 9. Access 2003 is Office 11.

The usual workaround is to use late binding. That is, omit the Office
reference all together, and declare the affected variables as simply Object
rather than as a specific type.

Signature

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.

>I wrote a simple App in Access 2003 but used the 2000 file format.  The
> one module Requires reference to Microsoft Office 11.0 Object Library.
[quoted text clipped - 3 lines]
> Are they not backward compatible?  Is there something the user can do
> to update this to Office 11?
Lyle Fairfield - 10 Dec 2005 13:24 GMT
> However, the person I have the code to has Office 2003 but only
> Microsoft Office 9.0 Object Library.

Could this be?
Wayne Morgan - 10 Dec 2005 14:24 GMT
If the person has Office 2003 installed but no Office 11 Reference
available, then I would suspect a problem with the install. Since the Office
9 library is available, do they have both versions of Office installed? This
is possible to do, if done correctly.

Signature

Wayne Morgan
MS Access MVP

>I wrote a simple App in Access 2003 but used the 2000 file format.  The
> one module Requires reference to Microsoft Office 11.0 Object Library.
[quoted text clipped - 3 lines]
> Are they not backward compatible?  Is there something the user can do
> to update this to Office 11?
Wayne Morgan - 10 Dec 2005 14:27 GMT
PS.

You say that they have the Office 9 library, the checked items at the top a
listed in preference order. In other words, Access will use these in the
order they're listed, hence the up and down buttons to the right of the
dialog. The unchecked references are listed in alphabetical order. Scroll
down the list to verify that the new library isn't there. If it is there,
you may have to uncheck the older one before it'll let you check the newer
one.

Signature

Wayne Morgan
MS Access MVP

>I wrote a simple App in Access 2003 but used the 2000 file format.  The
> one module Requires reference to Microsoft Office 11.0 Object Library.
[quoted text clipped - 3 lines]
> Are they not backward compatible?  Is there something the user can do
> to update this to Office 11?
David W. Fenton - 10 Dec 2005 20:41 GMT
> I wrote a simple App in Access 2003 but used the 2000 file format.
>  The one module Requires reference to Microsoft Office 11.0 Object
[quoted text clipped - 3 lines]
> Are they not backward compatible?  Is there something the user can
> do to update this to Office 11?

It may not matter. So far as I know, the Office object library is
unnecessary unless you use something in your code that is provided
by it (I've never found any need to do so), so you could try
removing the reference entirely and seeing if your code compiles.

I've seen the Office reference added in many times in my projects
and since I know for a fact that I never use anything from it, I
always simply remove the reference entirely.

Signature

David W. Fenton                        http://www.bway.net/~dfenton
dfenton at bway dot net                http://www.bway.net/~dfassoc

Dean - 11 Dec 2005 15:24 GMT
The object does matter as I am using a file dialog and a folder dialog
code.

I may follow Allen's advice on this.  Something like
http://www.mvps.org/access/api/api0001.htm may work nicely.
Douglas J. Steele - 11 Dec 2005 17:05 GMT
The code in http://www.mvps.org/access/api/api0001.htm (and
http://www.mvps.org/access/api/api0002.htm for the folder dialog) is
definitely going to be less problematic from a distribution point of view.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> The object does matter as I am using a file dialog and a folder dialog
> code.
>
> I may follow Allen's advice on this.  Something like
> http://www.mvps.org/access/api/api0001.htm may work nicely.
Randy Harris - 11 Dec 2005 17:40 GMT
> The object does matter as I am using a file dialog and a folder dialog
> code.
>
> I may follow Allen's advice on this.  Something like
> http://www.mvps.org/access/api/api0001.htm may work nicely.

IMO - this is definitely the way to go if the application might be used by
multiple users. I had nightmares trying to keep track of which users had
which version of Office installed. There was no end to compatibility errors.
Code like that put an end to all of it. Permanently.

The code was written by Ken Getz, one of the authors of the Access
Developers Handbook (all versions).  If you happen to have one of those, it
is on the included CD.  The book has examples for using it.

Randy Harris
David W. Fenton - 11 Dec 2005 20:44 GMT
> The object does matter as I am using a file dialog and a folder
> dialog code.

Well, I would never do that. I always use the ADH code that directly
invokes the relevant APIs. From what I can tell, the code is not a
whole lot simpler, so I don't quite see why anyone would introduce
an outside dependency for something that can be done easily with
APIs.

> I may follow Allen's advice on this.  Something like
> http://www.mvps.org/access/api/api0001.htm may work nicely.

That's basically the code that I've used, though from a later
edition of the ADH.

Signature

David W. Fenton                        http://www.bway.net/~dfenton
dfenton at bway dot net                http://www.bway.net/~dfassoc

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.