Hi everyone.
I use a macro as the one shown below to open a particular form in my access database 2003. How can I keep it from opening in Maximized mode? In the form properties, I don’t see anything that actually helps. I place Autocenter on YES and Autoresize on NO, and yet it still maximizes when someone opens the form. I have a preset size I want it to be (manually resized it and saved it that way). But turn around and on someone elses computer it will open maximized… Is there something I can add to the following code to tell it to keep its shape when it opens? I have the action in the code set to acNormal
Private Sub btnOpenfrmNannetteEnterRecords_Click() 'Attached to On Click event of cmdOpenfrmNannetteEnterRecords Dim strPassword strPasswd = InputBox("Enter Password", "Restricted Form") 'Check to see if there is any entry made to input box, or if 'cancel button is pressed. If no entry made then exit sub. If strPasswd = "" Or strPasswd = Empty Then MsgBox "No Input Provided", vbInformation, "Required Data" Exit Sub End If 'If correct password is entered open frmNannetteEnterRecords 'If incorrect password is entered give message and exit sub If strPasswd = "Nannette123" Then DoCmd.OpenForm "frmNannetteEnterRecords", acNormal Else MsgBox "Sorry, you do not have access to this form", vbOKOnly, "Important Information" Exit Sub End If End Sub