Results 1 to 4 of 4

Thread: Form Display

  1. #1
    Join Date
    Jun 2004
    Posts
    39

    Unhappy Unanswered: Form Display

    Hi,
    I have designed 2 forms, out of which one just has the logo of our company. The form gets displayed in a Maximized form, even though I set the properties of modal,popup etc. I'm unable to find out the reason.
    I want the form to be displayed in the size I designed it.
    Thanks in advance.
    Madhavi.

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Do you have any vba executing in the on open or on load event for the form?

    Poke around in the code and make SURE there is no call to DoCmd.Maximize.

    That's my knee-jerk reaction anyways.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Jun 2004
    Posts
    39
    I checked the code, but no where it has the docmd.maximize
    Is there any property to set it.
    This is the code I have for the form.

    CODE
    --------

    Option Compare Database

    Private Sub Detail_Click()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

    Private Sub Form_Click()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

    Private Sub Form_Load()
    Me.TimerInterval = 2000
    End Sub

    Private Sub Form_Timer()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

    Private Sub Label1_Click()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

    Private Sub Label2_Click()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

    Private Sub OLEUnbound0_Click()
    DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm "Startup"
    End Sub

  4. #4
    Join Date
    Oct 2003
    Location
    US
    Posts
    343
    On the Resize Event Enter this code
    DoCmd.Restore

    You'll be okay.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •