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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning a label based on an "if" statement

Status
Not open for further replies.

demax182

Technical User
Jul 13, 2004
43
0
0
US
Hi,

What is the code to position an object in a report. For example, if field1 = false then label1's left position = 5" and top position = 4". If true then the label will be positioned in another location. Is there a way of doing this? Thanks in advance.
 
pretty much as you said it

in on format event, put

if condition then
mylbl.left = ??
mylbl.top = ??
end if

using appropriate values for condition, mylbl and ??

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top