the plan is a bit nefarious
I work in a small niche industry, taught myself ACCESS / code / VBA, and wrote a continuously evolving project (on my own time) that is used extensively within our office (and could easily be extended industry-wide). I plan to retire soon. Sadly, the evolution of the project will come to a screeching halt
On that first day that I am gone, I'd like the software to open with a splash "good-bye, it's been nice knowing you..." form (maybe with a bit of dark sarcasm -which i am know for). The image would hang around for 5-10sec +/- and then go away... never to be seen again (just like me!) After that happens, I would like all traces of that event to go away (the splash, not the code) (even though, trust me when i say, there is no one in the office with even the smallest bit of interest in writing code...)
delete the form,
delete the table (which contains date and time info -when to start using the form as the splash image),
delete the module that contains the code to execute...
(Each user has their own 'front-end')
___________________
behind the main menu:
Code:
On Error Resume Next
Call ClearNothing
On Error GoTo 0
___________________
in the code module
Code:
Sub ClearNothing()
blnItsTime = DLookup("CloseDate", "tblNothing") < Now()
If blnItsTime Then
DoCmd.OpenForm "frmNothing" 'form is popup / modal / acDialog: code 'should' pause until the form is closed
DoCmd.DeleteObject acForm, "frmNothing"
DoCmd.DeleteObject acModule, "modNothing"
DoCmd.DeleteObject acTable, "tblNothing"
End If
End Sub
___________________
behind the form (popup, modal, acDialog)
Code:
Private Sub Form_Open(Cancel As Integer)
Me.TimerInterval = 7500 '1000 = 1 second
End Sub
Private Sub Form_Timer()
DoCmd.Close acForm, Me.Name
End Sub