Subform woes ...

  • Thread starter Thread starter m.cringle
  • Start date Start date
M

m.cringle

Hi folks

I have a subform which spans the entire height of the main form. Only
problem is that I don't want it to!! I want to leave a space at the
bottom of the main form (directly underneath the subform), so I can put
the exit command button the same place as all the other forms.

I have tried to adjust the size of the subform but it makes no
difference in form view. I even tried deleting and inserting a new
version but had the same problem.

Are there any settings that I might have acccidentally applied?

Any ideas?
 
Hi

Open the main form in Form View (not design) move and resise the subform by
draging it around then press "Control S" - close the form and re-open.

Hope this helps
 
Wayne-I-M said:
Hi

Open the main form in Form View (not design) move and resise the subform by
draging it around then press "Control S" - close the form and re-open.


Sorry, didn't explain myself very well! I have already tried this but
for some reason it refuses to change. It will let me change the size
while in design view but when going back into form view it remains the
same (changes remain in design view). I have even tried setting to
height property for the subform to 5cm but it still takes the full
screen in form view).
 
It sounds like there may be something on the subform - like a line or hidden
object off to the right of the form design. Trying dragging your mouse over
the "Blanc" areas of the form and see if you select anything.
 
Sorry forgot to add.

Open the form in design view and check that there is no code OnOpen / OnLoad
/ OnActivate, etc that would increase the size of the form
 
This is the offending code:

Private Sub Form_Resize()
Me.sfrmReports.Height = Me.InsideHeight - (Me.sfrmReports.Top + 100)
'Me.lblResize.Top = Me.InsideHeight - (Me.lblResize.Height + 200)
'Me.lblResize.Left = Me.InsideWidth - (Me.lblResize.Width + 200)
End Sub


Tried changing the numbers but nothing happened - any more ideas?
 
This is the offending code:

Private Sub Form_Resize()
Me.sfrmReports.Height = Me.InsideHeight - (Me.sfrmReports.Top + 100)
'Me.lblResize.Top = Me.InsideHeight - (Me.lblResize.Height + 200)
'Me.lblResize.Left = Me.InsideWidth - (Me.lblResize.Width + 200)
End Sub


Actually, don't worry. I have changed my design so it can stay how it
is (much easier!)

Thanks anyways
 

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

Subform Data Entry Setting 0
mirror data from subform to main form 3
row height in a subform 1
Access Main form/Subform Navigation 0
Form/Subform Will Not Open 2
Access Reference Subform's Control 0
Problem with form--subform 5
Text Positioning 2

Back
Top