Hi Fred
If you want to confirm first that this IS an Access 97 database, you
could
use the following code:
Public Function GetAccessVersion(DbFile As String) As Single
Dim db As Database, sVersion As String
On Error GoTo ProcErr
If DbFile = CurrentDb.Name Or Len(DbFile) = 0 Then
Set db = CurrentDb
Else
Set db = DBEngine(0).OpenDatabase(DbFile, , True)
End If
On Error Resume Next
sVersion = db.Properties("AccessVersion")
If Err = 3270 Then
Err.Clear
sVersion = db.Properties("Version")
End If
With Err
If .Number Then .Raise .Number, .Source, .Description
End With
GetAccessVersion = Val(sVersion)
ProcEnd:
On Error Resume Next
If Not db Is Nothing Then
If Not db Is CurrentDb Then db.Close
Set db = Nothing
End If
Exit Function
ProcErr:
MsgBox "Cannot read file " & DbFile & vbCrLf & Err.Description
Resume ProcEnd
End Function
Just paste it in a module in any Access database and pass it the full
path
for your MDE.
It will return one of the following values:
1.00 Access 1.0
1.10 Access 1.1
2.00 Access 2
6.68 Access 95
7.53 Access 97
8.50 Access 2000
9.50 Access 2002/2003
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Fred Jacobowitz said:
Thank you very much for your response. I just want to make sure I am
on
the
correct path. I have an 'mde' file and the current thinking is that it
is
an
access 97 file. Maybe I jumped the gun when I asked for a runtime
environment. Is the runtime environment going to let me run and have
full
functionality of the 'mde' file or did I need a full installation of
Access
97? Or is the runtime environment only of value when you have embedded
access api's in a program referencing the data in an mdb/mbe?
Thank you,
Fred Jacobowitz
:
Fred Jacobowitz wrote:
Is there a runtime
environment I can setup to support this file?
People occasionally post the Access Runtime versions on the web to
support
their Access applications. You can Google for an Access 97 Runtime
and
see
if you get lucky. To avoid compatibility problems, you need to either
install the Access 97 Runtime on a computer that doesn't already have
any
newer versions of Access installed, or you'll have to uninstall your
current
versions, then install each version again, oldest first.
So for Access 2003, you'd need to uninstall that, then install the
Access
97
Runtime, then the service packs, then install Access 2003, then the
service
packs, then delete everything that's in the MSACCESS.SRG file in the
Access
97 installation so that it doesn't re-register itself every time you
run
it.