Automated backup (1 Viewer)

ROMADOZ

Registered User.
Local time
Today, 13:59
Joined
May 14, 2008
Messages
31
OK, still lost here. My limited understanding tells me that the function name is backupcopy() is that true? It is in the 2nd line... "Public function backupcopy()" Am I still misisng something?
 

RuralGuy

AWF VIP
Local time
Today, 12:59
Joined
Jul 2, 2005
Messages
13,825
Your button code will be something like:
Code:
Private Sub btn_Exit_Click()
   On Error GoTo Err_btn_Exit_Click

   If Me.Dirty Then Me.Dirty = False
   [B][COLOR="Red"]BackupCopy[/COLOR][/B]
   DoCmd.Quit
Exit_btn_Exit_Click:
   Exit Sub
Err_btn_Exit_Click:
   MsgBox Err.Description
   Resume Exit_btn_Exit_Click

End Sub
What do you have now and what is happening?
 

ROMADOZ

Registered User.
Local time
Today, 13:59
Joined
May 14, 2008
Messages
31
I moved the backupcopy above the "If me.dirty" and now it works. I have to admit, I am not certain why... I think it may have something to do with the order access is processing the code. Thank you for all the help and patience, now I begin working on automation. How do I make an event run on it's own at a set time?
 

Users who are viewing this thread

Top Bottom