close access database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • make me rain
    New Member
    • Nov 2008
    • 3

    close access database

    how to do this please.
    in vb6 i want to just close an access database so as to compact and backup.
    sub close database()
    dim dbs as database
    set dbs = "c:\howto-close_thisMDB.m db"
    dbs.close
    end sub
    so it must close
    but this code not working,vide msdn i can use dbs.close method provided if use dbs.open method only.
    any help please.....
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    please find a related discussion here.

    Comment

    Working...