Results 1 to 2 of 2

Thread: File handling and open databases

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    1

    File handling and open databases

    Apologies if the answer to this is really simple, I want to use Kill to delete a database file (say C:\Database.mdb) but I have an ADODC that opens Database.mdb when the project loads.

    The connection string is declared during design time, not runtime, how would I close the database in my code, to allow it to be deleted?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: File handling and open databases

    Welcome to VBForums

    I'm not sure (as I don't use Data Controls), but I don't think you can close it.

    If you were using the 'proper' method of ADO code (as in the ADO Tutorial link in my signature) it would just take two simple lines of code.

Posting Permissions

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



Click Here to Expand Forum to Full Width