Solved

Delete database ???

Posted on 1998-07-14
3
135 Views
Last Modified: 2010-05-03
How do i delete a .mdb file which has record locking infomation file  .ldb ???

0
Comment
Question by:netcool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
web_crusher earned 10 total points
ID: 1465769
no need to relate to the ldb
the way to delete mdb is:

data1.recordset.movefirst
do until not data1.recordset.eof
  data1.recordset.delete
  data1.recordset.movenext
loop
0
 
LVL 5

Author Comment

by:netcool
ID: 1465770
Web_crusher,

Rearding your example it is to delete records right ? WHat if i want to delete th whole database file ...=>northwind.mdb


netcool
0
 
LVL 1

Expert Comment

by:web_crusher
ID: 1465771
if u want to delete a file no matter the extansion use
kill(filename)

IF YOU just want to reset the mdb - open all tables as u seen before and do the
same procedure to all tables!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question