Re: OpenCurrentDatabase or OpenDatabase - different versions of Access
From: CPutnam (cputnam1nospam_at_nc.rr.com)
Date: 10/11/04
- Next message: dar: "What happened?"
- Previous message: Dirk Goldgar: "Re: Amibiguous name detected"
- In reply to: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Next in thread: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Reply: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 18:33:57 GMT
Thanks for the reply, John.
The error message I'm getting is just a generic message that is in the code
"Unable to upgrade your Toolkit. Please contact Technical Support."
(Toolkit is the name of the application. There is an error trap that
displays some of the errors but this one doesn't display any number code or
further explanation.
And I'm sorry but I don't understand how the code could be at fault if it
works when I have an converted Access .mdb file with the same name and same
path as the Access 97 .mdb file (which doesn't work).
I'm in the middle of setting this up again and will test the demo's that you
provided. In the meanwhile, if you (or anyone else) have any other ideas,
please let me know.
Thanks in advance. Carol.
"John Nurick" <j.mapSoN.nurick@dial.pipex.com> wrote in message
news:vtsim0l8upd3tsv931lmq4o0duhp71mr3g@4ax.com...
> Hi Carol,
>
> On Sun, 10 Oct 2004 16:14:34 GMT, "CPutnam" <cputnam1nospam@nc.rr.com>
> wrote:
>
> >appToolkit.OpenCurrentDatabase mvarSourceFile
>
> >(AppToolkit is defined in the declarations as: Dim appToolkit As New
> >Access.Application
> >mvarSourceFile is the location of the old application .mdb file (remember
> >that this file is an Access97 database).)
>
> I don't know what the problem is but it's probably not in the statement
> above. AFAIK Access 2002 can automate an Access 97 mdb. Certainly Access
> 2003, using either of the techniques in the demo procedure below, and
> probably some others. What actual error messages are you getting?
>
> Sub OpenDBTest()
> Dim appA As Access.Application
> Dim T As DAO.TableDef
>
> Set appA = GetObject("C:\TEMP\Test.97.mdb")
> Debug.Print "DB opened with GetObject is " _
> & appA.CurrentProject.Name
> For Each T In appA.CurrentDb.TableDefs
> If Left(T.Name, 4) <> "MSYS" Then
> Debug.Print T.Name
> End If
> Next
> Debug.Print vbCrLf
> appA.CloseCurrentDatabase
> appA.Quit
> Set appA = Nothing
>
> Dim appB As New Access.Application
>
> appB.OpenCurrentDatabase "C:\Temp\Test.97.mdb"
> Debug.Print "DB opened with OpenCurrentDatabase is " _
> & appB.CurrentProject.Name
> For Each T In appB.CurrentDb.TableDefs
> If Left(T.Name, 4) <> "MSYS" Then
> Debug.Print T.Name
> End If
> Next
> Debug.Print vbCrLf
> appB.CloseCurrentDatabase
> appB.Quit
> Set appB = Nothing
>
> End Sub
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
- Next message: dar: "What happened?"
- Previous message: Dirk Goldgar: "Re: Amibiguous name detected"
- In reply to: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Next in thread: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Reply: John Nurick: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|