Controlling Form Size - Followup Question

A

Alan Z. Scharf

1. My main form opens with a DoCmd.Maximized in OnOpen.

2. I want to pop up another form with some records when a button is
pushed.

3. Is there a way to hold the popup form to a non-maximized size rather
than
being opened maximized?

I know a dialog form will do what I want, but that was giving me some
other
trouble. Hence, I'd like to avoid the dialog form.

Thanks.

Alan
 
J

Jeff Oppenheim via AccessMonster.com

Alan, maybe i'm missing something, but I simply size the from when I open
it.

' SET POSITION OF THE openshiprec FORM
If Form_openshiprec.Moveable Then
Form_openshiprec.Move _
Left:=0, Top:=600, Width:=17000, Height:=10200
End If

/Jeff
 
A

Alan Z. Scharf

Jeff,

I don't think you're missing anything!

I'll giver that a try.

Thanks very much.

Alan
 
A

Alan Z. Scharf

Jeff,

How exactly do I use your code?

I have a form named frmSearchResults.

Does code below just go in Form_Open event as:

If Form_Open.Movable Then
Form_Open.Move _
Left:=1, Top:=0.5, Width:=10000,
heigth:=10000
End If


Thanks.

Alan
 
J

Jeff Oppenheim via AccessMonster.com

alan, The following would go into the form_load event.
(obviously adjust sizes as needed)
Be sure to set the form properties to moveable.

' SET POSITION OF THE frmSearchResults FORM
If Form_frmSearchResults.Moveable Then
Form_frmSearchResults.Move _
Left:=0, Top:=600, Width:=17000, Height:=10200
End If

/Jeff
 

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

Top