Moving a subform up with code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a sub form the I want to be able to move the top position to a
different place on the main form depending on a switch that is set. I've put
the code subformname.top = xxxxx but it doesn't seem to want to move I also
want to make the height different. I've been able to move text boxes around
my using .left = xxxx and .right = xxxx but haven't been able to figure out
the sub form. Any help would be appreciated.

Thanks
 
Are you using the name of the subform control (the control that holds the
subform object, which may or may not be the name of the subform itself)?
 
Is the name of the subform also the name of the subform control? If not,
then use the name of the subform control. Open the main form in design view,
click on top edge of subform control, open Properties window, select Other
tab, and see what is in the Name property.
 
CD Tom, Are you specifying inches? I think I remember I had to convert
inches to TWIPS (1440 TWIPS per inch) when I messed around with
moving/re-sizing my subform.
 
Back
Top