Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Am I Using MDB or MDE? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    I

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Am I Using MDB or MDE? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    See if the method described in MSKB article ACC2002: How to Programmatically Determine Whether the Current File Is an MDE or and ADE File works for Access 2000 too.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Am I Using MDB or MDE? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Hi Hans

    Works great as follows:

    Thanks, John

    <pre>Function Check_If_MDB_or_MDE()

    Dim bCheckValue As Boolean
    bCheckValue = IsCompiledFile()
    Check_If_MDB_or_MDE = IIf(bCheckValue = False, "MDB", "MDE")

    End Function
    </pre>



    <pre>Function IsCompiledFile() As Boolean
    Dim strMDEADE As String
    On Error Resume Next
    If CurrentProject.ProjectType = acMDB Then
    strMDEADE = CurrentDb.Properties("MDE").Value
    Else 'type acADP
    strMDEADE = CurrentProject.Properties("MDE").Value
    End If
    IsCompiledFile = (Err.Number = 0 And strMDEADE = "T")
    End Function
    </pre>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •