|
-
Aug 6th, 2000, 09:31 PM
#1
Thread Starter
Fanatic Member
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
-
Aug 6th, 2000, 10:33 PM
#2
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
-
Aug 7th, 2000, 01:17 PM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|