Just starting some new code to treat some optional backup procedures. Sub TMSExit gets called when the app's session is ending. The user has an option check in app settings as to whether automatic backups are to be enabled. In some instances, the form "frmBkUps" will determine there's nothing to do so I don't even want the form to appear. In testing, the statement "Me.Visible = True" does not result in the form becoming visible. Is something else needed in the OpenForm statement?
Code:
Public Sub TMSExit()
If DLookup("BkUpEnabled", "InstProperties") = True Then _
DoCmd.OpenForm "frmBkUps", , , , , acHidden
DoCmd.Quit
End Sub
"frmBkUps" Open Event:
Code:
Private Sub Form_Open(Cancel As Integer)
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' User has automatic backups enabled. Lets see what needs to be done if
' anything.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Me.Visible = True
End Sub
I JUST SAW A SCREEN FLASH! I was expecting the form to hold control like acDialog, but it doesn't with acHidden. I think I need to go to bed :-(