And how would I go about writing an If statement for that?
' If Statement
If Application.SetOption("ShowWindowsInTaskbar",False ) Then
strWIT = "Off"
Else
strWIT = "On"
End If
' Do it the way I want
Application.SetOption "ShowWindowsInTaskbar", False
' Set it back the way it was before quitting
If strWIT = "On" Then
Application.SetOption "ShowWindowsInTaskbar", True
End If
DoCmd.Quit
|