Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Access Database from VB 1

Status
Not open for further replies.

glove

Technical User
Aug 24, 2000
42
US
After I run code to compact an Access database from VB I am left with two databases. How do I delete the original database and rename the compacted database?
Thanks.
 
Kill pathname permanntly removes a file object. Note that Wild card characters are permitted as part of the pathname variable. Also, pathname is a string or a string variable.

Name Oldname as NewName Changes the name of the file and (optionally) move it to a new location.

e.g.

OldName = "C:\MYDIR\OLDFILE"
NewName = "C:\YOURDIR\NEWFILE"
Name OldName As NewName ' Move and rename file.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top