Label Positioning?

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.
 
F

fredg

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.
 
K

kevinrea

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
 
J

Jason Gyetko

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.
 

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