Una famiglia di sistemi di gestione per database relazionali di Microsoft progettati per semplificare l'uso.
ciao Vladimiro,
recuperi l'handle dell'applicazione ms-access e lo passi alla APi ShowWindow applicando la costante corretta che trovi qui :
funzione da lanciare con macro autoexec oppure su apertura del db nella form che impostata su aperture del DB.
( sempre se ho capito...! :-) ).
Option Compare Database
Option Explicit
#If Win64 Then
Private Declare PtrSafe Function ShowWindow _
Lib "user32" (ByVal hwnd As LongPtr, _
ByVal nCmdShow As Long) As Long
#Else
private Declare Function ShowWindow _
Lib "user32" Alias "ShowWindow" _
(ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long
#End If
Private Const SW_HIDE As Long = 0
Private Const SW_MAXIMIZE As Long = 3
Private Const SW_MINIMIZE As Long = 6
Private Const SW_RESTORE As Long = 9
Private Const SW_SHOW As Long = 5
Private Const SW_SHOWDEFAULT As Long = 10
Private Const SW_SHOWMAXIMIZED As Long = 3
Private Const SW_SHOWMINIMIZED As Long = 2
Public Function setAppSize()
ShowWindow hwnd:=Application.hWndAccessApp, nCmdShow:=SW_MAXIMIZE
'ShowWindow hwnd:=Application.hWndAccessApp, nCmdShow:=SW_RESTORE
End Function
ciao, Sandro.