?
Solved

Delete database ???

Posted on 1998-07-14
3
Medium Priority
?
136 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 20 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

752 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