- Local time
- Today, 14:35
- Joined
- Oct 29, 2018
- Messages
- 21,467
Yes, but wait a minute. So, if the code with the problem is in the Load event of your form, then just comment out the parts where it refers to a Caption. For example.The code is on my db under the form load event procedure. However, I don't have the label captions that are mentioned in the code. Which part is for the hide or show window?
Do you mean upload my db?
Code:
On Error GoTo Err_Handler
'If Me.cmdAppWindow.Caption = "Show Application Window" Then
'can't do this if form maximized & fills screen
'DoCmd.Restore
'Me.cmdRestore.Caption = "Maximize Form"
' SetAccessWindow (SW_SHOWMAXIMIZED)
SetAccessWindow (SW_SHOW) 'v3.43
HideRibbon 'v3.43
blnShowWindow = True
'Me.cmdAppWindow.Caption = "Hide Application Window"
DoEvents
Else
'close & reopen form
Application.Echo False
'DoCmd.Close acForm, Me.Name
'DoCmd.OpenForm "frmStart"
' SetAccessWindow (SW_SHOWMINIMIZED)
Application.Echo True
blnShowWindow = False
End If