J
javiernews via AccessMonster.com
Hi,
I use this code in orther to know if is a real MDB
Public Function funIsMDE(ByRef WritePath As String) As Boolean
Const cMDE As String = "T"
Dim dbs As DAO.Database
Set dbs = DBEngine.OpenDatabase(WritePath, True, False)
On Error Resume Next
If Err = 0 And cMDE Then
funIsMDE = True
Else
funIsMDE = False
End If
dbs.Close
Set dbs = Nothing
End Function
But it does not work for Access 2007 in ACCDB or ACCDE format
How to know if is a real ACCDB ?
Thank you
I use this code in orther to know if is a real MDB
Public Function funIsMDE(ByRef WritePath As String) As Boolean
Const cMDE As String = "T"
Dim dbs As DAO.Database
Set dbs = DBEngine.OpenDatabase(WritePath, True, False)
On Error Resume Next
If Err = 0 And cMDE Then
funIsMDE = True
Else
funIsMDE = False
End If
dbs.Close
Set dbs = Nothing
End Function
But it does not work for Access 2007 in ACCDB or ACCDE format
How to know if is a real ACCDB ?
Thank you