Hiding access window faster (1 Viewer)

Exodus

Registered User.
Local time
Today, 11:07
Joined
Dec 4, 2003
Messages
317
I'm using the hide access code, when access itialy opens I still see the access window for a few seconds what can I do to speed the code up
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 13:07
Joined
Feb 28, 2001
Messages
27,249
Compile and Save all modules, for one thing.
Compress the DB regularly, for another.

Those two are easy. More than that requires knowledge of your db structure, and even then there are no guarantees.
 

Exodus

Registered User.
Local time
Today, 11:07
Joined
Dec 4, 2003
Messages
317
Compiled and compressed already still the same.
 

ghudson

Registered User.
Local time
Today, 14:07
Joined
Jun 8, 2002
Messages
6,195
Did you deselect the "display db window" in the StartUp options?
 
R

Rich

Guest
create your own splash screen when the db opens, cover the db window with it
 

Exodus

Registered User.
Local time
Today, 11:07
Joined
Dec 4, 2003
Messages
317
Ok selecting the db at start up doesn't help because its not that window.
Tried creating a splash screen but I need to find some code to size the Access window cover it with it.
 
R

Rich

Guest
Option Compare Database
Option Explicit

Declare Sub SetWindowPos Lib "User32" (ByVal hWnd&, _
ByVal hWndInsertAfter&, _
ByVal X&, ByVal Y&, ByVal cX&, _
ByVal cY&, ByVal wFlags&)

Global Const HWND_TOP = 0 'Moves MS Access window to top
'of Z-order.

'Values for wFlags.

Global Const SWP_NOZORDER = &H4 'Ignores the hWndInsertAfter.


Function SizeAccess()
Dim cX As Long, cY As Long, cHeight As Long
Dim cWidth As Long, H As Long
'Get handle to Microsoft Access.
H = Application.hWndAccessApp

cX = 15
cY = 15
cWidth = 650
cHeight = 500

'Position Microsoft Access.
SetWindowPos H, HWND_TOP, cX, cY, cWidth, cHeight, SWP_NOZORDER
Application.RefreshDatabaseWindow
End Function
 

Exodus

Registered User.
Local time
Today, 11:07
Joined
Dec 4, 2003
Messages
317
Thanks Rich,

I found something else @ peters Software
 

Attachments

  • WinManip.zip
    89.4 KB · Views: 555

govuser1

Registered User.
Local time
Today, 11:07
Joined
May 14, 2012
Messages
11
can you modify this code at all to set the access window size but allow the window to open up in the position it was last opened in?
 

Users who are viewing this thread

Top Bottom