Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to move labels in program

Status
Not open for further replies.

eng69

Programmer
Dec 8, 2005
10
US
I have a report and I need to move labels depending on the results of the report. Everytime i choose the move command, it simply makes them dissapear. here is a snipet of the code.

Me.lblpavinspect.Visible = True
Me.lblpavinspect.Move lblleft, lbltop, lblwidth, lblheight
Me.BPI.Move dataleft, [datatop], [datawidth], [dataheight]
Me.BPI.Visible = True
Me.BPI.Caption = strDate
lbltop = lbltop + 0.1667
datatop = datatop + 0.1667

Thanks
 
I have never seen the "Move" method used. I usually set the Top and Left property to move a control.

Since we don't know your lblLeft, lbltop, lblwidth, and lblheight values, I can only guess that you are expecting a scale of inches when the actual values should be in twips.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Awsome, that kinda worked! The labels are all in the same spot, but i'm sure thats in my numbering system.

What do the top and left property numbers correspond to? inches? twips? if twips, where do i find information on that measurements (i dont know).

thanks!

 
actually i just noticed that no matter what numbers i put in for values, it always goes to the upper left????
 
ok i figured it out.. the value is in twips.

twip

Unit of measurement used by Microsoft Access that is equal to 1/20 of a point, or 1/1440 of an inch. There are 567 twips in a centimeter.

i'll take it from here..

Thanks a bunch!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top