I can not remember who steered me to the following code,
( I would have liked to give them the credit due)but it
works great for me. remember to include the
DoCmd.Maximize in your OnActivate event.(I found
that if you switch back and forth between opened forms,
it sometimes does not "maximize" in the right position.)
Place the following in the Form_YourSplashformname_OnOpen
event: RemoveCloseButton Me.hwnd
Copy the following into a NEW module:
************************************************************
Option Compare Database
Option Explicit
Public Const MF_BYPOSITION = &H400
Public Const MF_REMOVE = &H1000
Public Declare Function DrawMenuBar Lib "user32" _
(ByVal hwnd As Long) As Long
Public Declare Function GetMenuItemCount Lib "user32" _
(ByVal hMenu As Long) As Long
Public Declare Function GetSystemMenu Lib "user32" _
(ByVal hwnd As Long, _
ByVal bRevert As Long) As Long
Public Declare Function RemoveMenu Lib "user32" _
(ByVal hMenu As Long, _
ByVal nPosition As Long, _
ByVal wFlags As Long) As Long
Public Sub RemoveCloseButton(hwnd As Long)
Dim hSysMenu As Long
hSysMenu = GetSystemMenu(hwnd, 0)
RemoveMenu hSysMenu, 6, MF_BYPOSITION
RemoveMenu hSysMenu, 5, MF_BYPOSITION
End Sub
************************************************************
I have not had any problems with this since I added it to
my DB.
Jim