dbTalk Databases Forums  

opening access2003 from access97

comp.databases.ms-access comp.databases.ms-access


Discuss opening access2003 from access97 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default opening access2003 from access97 - 07-27-2010 , 06:33 PM






currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer

Reply With Quote
  #2  
Old   
Douglas J. Steele
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-27-2010 , 08:29 PM






Sorry, it's not possible.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/djsteele
Co-author: "Access 2010 Solutions", published by Wiley
(no e-mails, please!)



"Roger" <lesperancer (AT) natpro (DOT) com> wrote

Quote:
currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer

Reply With Quote
  #3  
Old   
ManningFan
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-28-2010 , 10:21 AM



On Jul 27, 7:33*pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
Quote:
currently I have an access97 application that opens a second access97
application using
* * Dim objAccess As Access.Application
* * On Error GoTo fErr
* * Set objAccess = New Access.Application
* * objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
* * Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer
You need to import your 2k3 tables into an A97 database. No program
on the planet (that I know of...) is forward-compatible, so there's no
way A97 could understand what 2k3's structure is.

Reply With Quote
  #4  
Old   
Douglas J. Steele
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-28-2010 , 12:00 PM



Actually, it's not really a case of being forward-compatible (you can, as
far as I know, open Excel 2007 documents from Access 97). It's a case that
you can't instantiate a different version of Access from within Access. You
wouldn't be able to instantiate Access 95 either (although it wouldn't
matter, since you'd be able to open the Access 95 database in the
instantiated version of Access 97)

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"ManningFan" <manningfan (AT) gmail (DOT) com> wrote

On Jul 27, 7:33 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
Quote:
currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer
You need to import your 2k3 tables into an A97 database. No program
on the planet (that I know of...) is forward-compatible, so there's no
way A97 could understand what 2k3's structure is.

Reply With Quote
  #5  
Old   
Bob Barrows
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-28-2010 , 12:26 PM



You are correct that it does not seem possible with early-binding
(attempting to set a reference to a different version of Access in
References raises a "name conflict with existing library" error), but
there seems to be no problem with late-binding. I just tried this in an
A97 module:

Sub testA2003()
Dim obj As Object
Set obj = CreateObject("Access.Application.10")
Set obj = Nothing
End Sub

And it does seem to work. An instance of Access did appear in task
manager. When I added "obj.visible=true", I could definitely see an
instance of Access 2003 open when I stepped through the code.


Douglas J. Steele wrote:
Quote:
Actually, it's not really a case of being forward-compatible (you
can, as far as I know, open Excel 2007 documents from Access 97).
It's a case that you can't instantiate a different version of Access
from within Access. You wouldn't be able to instantiate Access 95
either (although it wouldn't matter, since you'd be able to open the
Access 95 database in the instantiated version of Access 97)


"ManningFan" <manningfan (AT) gmail (DOT) com> wrote in message

news:a68ae113-17e4-45b4-8cff-dd1c06560841 (AT) u26g2000yqu (DOT) googlegroups.com...
On Jul 27, 7:33 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer

You need to import your 2k3 tables into an A97 database. No program
on the planet (that I know of...) is forward-compatible, so there's no
way A97 could understand what 2k3's structure is.
--
HTH,
Bob Barrows

Reply With Quote
  #6  
Old   
Roger
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-28-2010 , 01:15 PM



On Jul 28, 11:26*am, "Bob Barrows" <reb01... (AT) NOyahoo (DOT) SPAMcom> wrote:
Quote:
You are correct that it does not seem possible with early-binding
(attempting to set a reference to a different version of Access in
References raises a "name conflict with existing library" error), but
there seems to be no problem with late-binding. I just tried this in an
A97 module:

Sub testA2003()
Dim obj As Object
Set obj = CreateObject("Access.Application.10")
Set obj = Nothing
End Sub

And it does seem to work. An instance of Access did appear in task
manager. When I added "obj.visible=true", I could definitely see an
instance of Access 2003 open when I stepped through the code.

Douglas J. Steele wrote:
Actually, it's not really a case of being forward-compatible (you
can, as far as I know, open Excel 2007 documents from Access 97).
It's a case that you can't instantiate a different version of Access
from within Access. You wouldn't be able to instantiate Access 95
either (although it wouldn't matter, since you'd be able to open the
Access 95 database in the instantiated version of Access 97)

"ManningFan" <manning... (AT) gmail (DOT) com> wrote in message

news:a68ae113-17e4-45b4-8cff-dd1c06560841 (AT) u26g2000yqu (DOT) googlegroups.com...





On Jul 27, 7:33 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer

You need to import your 2k3 tables into an A97 database. *No program
on the planet (that I know of...) is forward-compatible, so there's no
way A97 could understand what 2k3's structure is.

--
HTH,
Bob Barrows- Hide quoted text -

- Show quoted text -
yes, I did try the createObject() earlier today and it works if both
versions are on your computer
but we're using citrix, and access97 & access2003 are sequenced
through softgrid, causing createObject() to fail
I guess converting all applications to access2003 is the way to go

Reply With Quote
  #7  
Old   
Douglas J. Steele
 
Posts: n/a

Default Re: opening access2003 from access97 - 07-28-2010 , 02:51 PM



Makes sense.

Thanks, Bob.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"Bob Barrows" <reb01501 (AT) NOyahoo (DOT) SPAMcom> wrote

Quote:
You are correct that it does not seem possible with early-binding
(attempting to set a reference to a different version of Access in
References raises a "name conflict with existing library" error), but
there seems to be no problem with late-binding. I just tried this in an
A97 module:

Sub testA2003()
Dim obj As Object
Set obj = CreateObject("Access.Application.10")
Set obj = Nothing
End Sub

And it does seem to work. An instance of Access did appear in task
manager. When I added "obj.visible=true", I could definitely see an
instance of Access 2003 open when I stepped through the code.


Douglas J. Steele wrote:
Actually, it's not really a case of being forward-compatible (you
can, as far as I know, open Excel 2007 documents from Access 97).
It's a case that you can't instantiate a different version of Access
from within Access. You wouldn't be able to instantiate Access 95
either (although it wouldn't matter, since you'd be able to open the
Access 95 database in the instantiated version of Access 97)


"ManningFan" <manningfan (AT) gmail (DOT) com> wrote in message

news:a68ae113-17e4-45b4-8cff-dd1c06560841 (AT) u26g2000yqu (DOT) googlegroups.com...
On Jul 27, 7:33 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
currently I have an access97 application that opens a second access97
application using
Dim objAccess As Access.Application
On Error GoTo fErr
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "path to access97.mdb"

what do I need to change to open an access2003 application ?

is it as simple as
Set objAccess = New Access.Application.11 ?

note, both access97 & access2003 are loaded on the computer

You need to import your 2k3 tables into an A97 database. No program
on the planet (that I know of...) is forward-compatible, so there's no
way A97 could understand what 2k3's structure is.

--
HTH,
Bob Barrows


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.