Results 1 to 3 of 3

Thread: Save to disk

  1. #1

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Post

    Hi again,

    Used this code the other day:

    On Error GoTo DirCopy_err

    Data1.Database.Close
    Dim SourceFile, DestinationFile
    SourceFile = Label3.Caption ' Define source file name.
    DestinationFile = ("A:\contact.mdb") ' Define target file name.
    FileCopy SourceFile, DestinationFile ' Copy source to target.
    Data1.DatabaseName = Label3.Caption
    Data1.Refresh

    Is there any way I can save the database to a floppy with the date it was saved and not overwrite the one already on the disk.

    Thanks,

    Spud

  2. #2
    Guest
    I don't know about Databases. But you could always save the filename as a date.

    Code:
    DestinationFile = ("A:\contact (" & Date & ").mdb") 'Returns A:\contact (8/6/00).mdb

  3. #3

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Smile

    Thanks Matthew that should do the trick!

    Spud

    (Hoping to answer someones post one day)

    any relation to Bill - bet you havent heard that before!!


    [Edited by spud on 08-07-2000 at 02:20 PM]

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