Hi,
I have an Access 2000 database with one main form in which all subforms
are embedded. In this form I have a timer which closes the form,
detaches the linked (ODBC) tables and reopens the same form with a
login dialog (initiated in onOpen).
When I open the application the form maximizes (as it should). But when
the code reopens the form, the form is not maximized. I have
DoCmd.Maximize in onOpen,onLoad,o nActivate. What else can I try to get
this form open maximized?
The code I use to close and reopen the form is:
Sub IdleTimeDetecte d(ExpiredMinute s)
Dim frmName As String
frmName = "OpenForm"
DoCmd.Close acForm, frmName, acSaveYes
DisconnectTable ("") 'this detaches the linked tables
DoCmd.Maximize
DoCmd.OpenForm frmName 'here the form opens non-maximized
End Sub
Thanks for your help
I have an Access 2000 database with one main form in which all subforms
are embedded. In this form I have a timer which closes the form,
detaches the linked (ODBC) tables and reopens the same form with a
login dialog (initiated in onOpen).
When I open the application the form maximizes (as it should). But when
the code reopens the form, the form is not maximized. I have
DoCmd.Maximize in onOpen,onLoad,o nActivate. What else can I try to get
this form open maximized?
The code I use to close and reopen the form is:
Sub IdleTimeDetecte d(ExpiredMinute s)
Dim frmName As String
frmName = "OpenForm"
DoCmd.Close acForm, frmName, acSaveYes
DisconnectTable ("") 'this detaches the linked tables
DoCmd.Maximize
DoCmd.OpenForm frmName 'here the form opens non-maximized
End Sub
Thanks for your help
Comment