Form sizing issue

B

Beth

In my database I have one form with a running list of students. When you
select a name from the list, I want it to open the students form to that
student's record as a dialog form so that I can have some code wait for the
student form to close before it runs.
The code is DoCmd.OpenForm "frmStudents", acNormal, , "StudentID =
Forms!frmStudents.StudentID", acFormEdit, acDialog

All that works fine except that when the Student form opens, it maximizes,
removes the toolbars at the top and even covers the Windows start bar at the
bottom of the screen. I have played with settings, but I can't get it to
maximize within the database frame, leaving the taskbar and toolbars.

What is the setting that I have wrong? Thanks!

Beth
 
M

Marshall Barton

Beth said:
In my database I have one form with a running list of students. When you
select a name from the list, I want it to open the students form to that
student's record as a dialog form so that I can have some code wait for the
student form to close before it runs.
The code is DoCmd.OpenForm "frmStudents", acNormal, , "StudentID =
Forms!frmStudents.StudentID", acFormEdit, acDialog

All that works fine except that when the Student form opens, it maximizes,
removes the toolbars at the top and even covers the Windows start bar at the
bottom of the screen. I have played with settings, but I can't get it to
maximize within the database frame, leaving the taskbar and toolbars.

What is the setting that I have wrong? Thanks!


AFAIK, What you did wrong was maximize the student form in
dialog mode. Dialog and popup forms are not confined to the
Access window.

Instead of using DoCmd.Maximize, use DoCmd.MoveSize to make
the form large, but not too big.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Opening a form to a specific record 2
Help Linking Subform and Form 2
Question Again 3
Access linking new student form to new course form 2
Parameters 5
Form 4
register student to course 0
NotInList Issue 1

Top