Label Positioning?

  • Thread starter Thread starter Jason Gyetko
  • Start date Start date
J

Jason Gyetko

I'm trying to position and display a Frame box label. I'm specifying the
following info, but the label does not appear:

lblTest.Caption = "Test"
lblTest.Visible = True
lblTest.Left = 4.4583
lblTest.Top = 2.75
lblTest.Width = 0.6667
lblTest.Height = 0.2083

Am I leaving something out or doing somehting wrong? Thanks.
 
Jason said:
I'm trying to position and display a Frame box label. I'm specifying the
following info, but the label does not appear:

lblTest.Caption = "Test"
lblTest.Visible = True
lblTest.Left = 4.4583
lblTest.Top = 2.75
lblTest.Width = 0.6667
lblTest.Height = 0.2083

Am I leaving something out or doing somehting wrong? Thanks.
Jason,
Access uses Twips as a measurement.
There are 1440 Twips in an inch.
Try:

lblTest.Left = 4.4583 * 1440
lblTest.Top = 2.75 * 1440
lblTest.Width = 0.6667 * 1440
lblTest.Height = 0.2083 * 1440

To position the group 4.4583 inches from the left edge, etc.
 
you have in your code the width and height is in the wron
proportions..
you need to put it in twips...
1440 = 1 inch in size..
so, put in 1440 for your width and height and it should work.

kevi
 
Thanks, that was my problem.

fredg said:
Jason,
Access uses Twips as a measurement.
There are 1440 Twips in an inch.
Try:

lblTest.Left = 4.4583 * 1440
lblTest.Top = 2.75 * 1440
lblTest.Width = 0.6667 * 1440
lblTest.Height = 0.2083 * 1440

To position the group 4.4583 inches from the left edge, etc.
 
Back
Top