Hi Lori,
Thank you. It is in the 2000 format.
Good to see you have the MDE problem resolved.
Jeff, here's another question for you. In a message earlier, you indicated
that you had a button in your front end dbase that copied the backend and
date stamped it. Would you mind sharing the information about how you did that?
If you're referring to the post about having a customized login screen for a secured database,
sure, here is the exact code behind the button:
' Code Start
Private Sub cmdMakeBackups_Click()
On Error GoTo ErrorHandler
Dim strFileName As String
Dim strFileNoExt As String
strFileName = "C:\Bo$$97\Data\Data.mde"
strFileNoExt = "C:\Bo$$97\Backup\Data"
If MsgBox("Ready to backup the data files?", vbInformation + vbYesNo _
+ vbDefaultButton2, "Backup Data") = vbYes Then
FileCopy strFileName, strFileNoExt & Format$(Date, "mmddyy") & ".mde"
MsgBox "Backup complete. Please make sure to backup this file to a disk, " _
& "CD-ROM, or network directory on a regular basis.", vbInformation, _
"Backup Successful"
End If
ExitPoint:
Exit Sub
ErrorHandler:
If err.Number = 76 Then
MsgBox "The Backup folder is missing. Please call tech support " _
& "to report this error.", vbCritical, "Backup Folder Missing"
Resume ExitPoint
End If
If err.Number = 70 Then
MsgBox "The backup cannot proceed since the data files are currently " _
& "being used. Please exit completely out of the program before " _
& "continuing.", vbExclamation, "Cannot Proceed"
Else
fncErrMessage err.Number, err.Description
End If
Resume ExitPoint
End Sub
' Code End
What this does is copy the BE database called "Data.mde" from the folder
"C:\Bo$$97\Data" to a folder called "C:\Bo$$97\Backup."
It names the file with the current date. So if I was to run this today, the
resulting file would be called Data041304.mde in the Backup folder.
It works very nicely and I can easily see what day the backup was completed.
My error handling code catches the possibility of the Backup folder not existing and stops.
(At some point I'd like to change that to actually create the Backup folder if needed. That
will be a post of my own I'm sure!) I also stop the process if the file is being accessed.
I do this from a customized login screen in a second unsecured database. Since this second
database does not have any links to the main BE, this scenario works quite well for me.
I am concerned about the stability of a machine where my application will
be installed and I would like to have the backend backed up to a removable
device every 10 minutes when they are logged onto the system. The users
will not be logged on very often, but it is very heavy data entry when they
are.
**Important Notes**
As pointed out in that earlier thread, this is for a SINGLE workstation setup!
I would NOT do this procedure on a multi-user situation, which it sounds like
your situation. No users can be using the BE tables and corruption could also happen as well.
**
Also, you mention that you want backups every 10 minutes. This sounds like VERY
important, mission-critical data!! If that's the case you may want to seriously think
about SQL Server for the BE tables as SQL Server has much better backup procedures.
As Joan pointed out, you cannot backup the BE if any users are accessing the file.
You would need to make sure each user is logged off and/or log them off when
you want to run the backup. If you wish to read more about this procedure I suggest
the following links/samples for study. I don't have any experience with this task myself,
but see if these links help. Watch out for any possible line wrapping on these links!
http://www.datastrat.com/Download2.html
Look for KickEmOff2K sample database.
http://www.rogersaccesslibrary.com/download2k.asp?SampleName='LogUsersOff2k.mdb'
http://www.rogersaccesslibrary.com/download2k.asp?SampleName='LogUsersOffNonUse2k.mdb'
http://support.microsoft.com/?id=198755
http://support.microsoft.com/?id=285822
http://www.candace-tripp.com/_pages/access_downloads.asp
Look for Detect and Logoff Idle Users
You have a been a great help with all my questions.
You're very welcome.