I pasted the code and keep getting unexpected end or expected identifier errors. All four Sub and Function lines are in red.
"Stefan Hoffmann" wrote:
[Quoted Text] > hi Rod, > > Rod wrote: > > I need to backup the database, Candidates, five days a week. I would like to > > have a button to press which will backup Candidates to "J:\bak\Backup (Tue)", > > "J:\bak\Backup (Wed)", etc., so it needs to determine the current day and > > execute the backup. > These methodes will help you: > > Sub CopyDatabaseFile(DatabaseFileName, [OverwriteExistingFile], > [DisconnectAllUsers]) > Member of Access.DoCmd > > Sub MkDir(Path As String) > Member of VBA.FileSystem > > Function Weekday(Date, [FirstDayOfWeek As VbDayOfWeek = vbSunday]) > Member of VBA.DateTime > > Function WeekdayName(Weekday As Long, [Abbreviate As Boolean = Falsch], > [FirstDayOfWeek As VbDayOfWeek = vbUseSystemDayOfWeek]) As String > Member of VBA.Strings > Returns localized weekday name > > mfG > --> stefan <-- >
|