Hi all
I have read various posts relating to this but can't find a solution to whats happening.
Basically, what I am doing is hiding access while a splash form is shown, then when the splash form is closed access is shown again.
here is the code (found on this forum)
The problem is that when access is shown again the menu bar is missing, although it is enabled?? It is just showing the database window. Having said this sometimes works ok.
This is nothing to do with showing the toolbars as they are all enabled. I have also gode code like to to ensure they all are enabled.
Is this just a glitch with using this type of code to hide access as if I close the DB and reopen using the shift key the toolbars are all there?
Regards
Kev
I have read various posts relating to this but can't find a solution to whats happening.
Basically, what I am doing is hiding access while a splash form is shown, then when the splash form is closed access is shown again.
here is the code (found on this forum)
Code:
Option Compare Database
Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Public Const SW_HIDE = 0
Public Const SW_NORMAL = 1
Public Const SW_MIN = 2
Public Const SW_MAX = 3
Function ShowAccess()
ShowWindow Application.hWndAccessApp, SW_MAX
End Function
Function HideAccess()
ShowWindow Application.hWndAccessApp, SW_HIDE
End Function
The problem is that when access is shown again the menu bar is missing, although it is enabled?? It is just showing the database window. Having said this sometimes works ok.
This is nothing to do with showing the toolbars as they are all enabled. I have also gode code like to to ensure they all are enabled.
Code:
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = True
Next i
Is this just a glitch with using this type of code to hide access as if I close the DB and reopen using the shift key the toolbars are all there?
Regards
Kev