Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    delete databases (Access 2000)

    I have databases begining students and ending with figures
    for example Students2005

    How can i delete all the databases begining with students?

    If Dir("C:HomesStudents.mdb", vbNormal) <> "" Then
    Kill "C:HomesStudents.mdb"
    End If

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

    Re: delete databases (Access 2000)

    Use the * wildcard:
    <code>
    Kill "C:HomesStudents*.mdb"
    </code>
    * stands for any number of characters, ? for one character.

Posting Permissions

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