Results 1 to 10 of 10

Thread: [RESOLVED] MDB file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Resolved [RESOLVED] MDB file

    Hi

    I have a program that use mdb file to store data.

    What I will do with this is to backup the file

    I know how to do that, but the question is
    how to make backup of the file so I can
    go back and restore the file from 10 Days ago.

    I mean how to number the file we say

    like this phone.mdb
    phone.mdb1
    and so on

    Lenny

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Re: MDB file

    Thanks it works just fine

    How can I get the file back from the backup dir?????

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: MDB file

    Same way... only in reverse... just copy the backup over the original.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Re: MDB file

    Hi

    Okej it works just with one file

    If I have several files with different date and time

    how to get one of them back.

    file.mdb20130509_18:48

    file.mdb20130509_19:48

    file.mdb20130509_20:18

    file.mdb20130509_20:48

  6. #6
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: MDB file

    Maybe you could put the files in a FileListBox.
    You could see what files are available and select the desired one from the list.

  7. #7
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: MDB file

    If I were you I'd use Rhino's suggestion for the file and append the Date and Time to the Filename rather than Filetype. That will make it (slightly) easier to filter if you're going to use a FileListBox.

  8. #8
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: MDB file

    Quote Originally Posted by Bonzo2008 View Post
    Hi

    Okej it works just with one file

    If I have several files with different date and time

    how to get one of them back.

    file.mdb20130509_18:48

    file.mdb20130509_19:48

    file.mdb20130509_20:18

    file.mdb20130509_20:48
    In addition to RhinoBull's and Doogle's recommendations, you also shouldn't use a colon (":") anywhere in the filename because doing so creates or accesses the Alternate Data Streams (ADS). See Streams for more info.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Re: MDB file

    Quote Originally Posted by Bonnie West View Post
    In addition to RhinoBull's and Doogle's recommendations, you also shouldn't use a colon (":") anywhere in the filename because doing so creates or accesses the Alternate Data Streams (ADS). See Streams for more info.
    Hi

    I solved it

  10. #10
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: MDB file

    REF: "I solved it"

    If so, please make this thread as RESOLVED, under 'thread tools'.

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