Dim Database As String = "C:\Database.mdb" Do Try If File.Exists(Database) Then File.Delete(Database) Dim cat As New ADOX.Catalog() cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Database) cat = Nothing Catch ex As Exception End Try Sleep(5) ' Code not displayed but does not put the app to sleep just a delay with application.doevents... Loop
cat.ActiveConnection.Close
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)