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

Find Objects Name On Report?

Status
Not open for further replies.

xBaseDude

MIS
Jan 31, 2002
357
US
Gentlemen;

How do I find out the name of an Object on a Report?

TIA - Wayne

sig_jugler.gif
...all this and tap dancing too!
 
if you're talking about some way to say ThisReport.txtName.value, there isn't one. The fields placed on a report aren't objects in memory like that. You can get to a form's controls from a report but not the other way around. What is it you are trying to do and maybe myself or someone here can help you?

Slighthaze = NULL
 
Hi Wayne !
From my working code (for controls):
mX = SheetList(SheetPointer,1).Form.PageFrame.Pages(n).ControlCount
FOR m = 1 TO mX
zm_pole = SheetList(SheetPointer,1).Form.PageFrame.Pages(n).Controls(m).Name .........
For you:
mX = NameOfFormset).Form.ControlCount
FOR m = 1 TO mX
zm_pole = NameOfFormset).Form.Controls(m).Name
.........


Monika from Warszawa (Poland)
(monikai@yahoo.com)
 
Wayne

Since a report is just a table, the report is one of the few items left to objectify (same as the menu), in order to find an object in a report, you would have to use your report like a table and do a LOCATE on it to find the object in question.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Sorry, my mistake. I didn't write your question exactly (not form- REPORT) - i woke up at 5 today

Monika from Warszawa (Poland)
(monikai@yahoo.com)
 
What is it you are trying to do and maybe myself or someone here can help you?

Change textbox properties on the fly with a udf() to select font size.

IF [condition]
THIS.textbox.FONTSIZE = 24
ENDIF

Regards - Wayne


sig_jugler.gif
...all this and tap dancing too!
 
xBaseDude

Use another textbox (one on top of the other ) and change the font of the second one to 24 and use the printWhen clause to determine which one should appear.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike;

change the font of the second one to 24

Where do I set this font size?

TIA - Wayne

sig_jugler.gif
...all this and tap dancing too!
 
xBaseDude

Where do I set this font size?

At design-time, select the textbox, from the menu Format->Font.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Other than Mike's suggestion of using multiple textboxes (one for every fontsize you want available) I've only seen one thing that can do what you want GENREPOX (public domain utility created by Markus Egger). I've used it for changing some of the fields on a report at runtime based on some criteria etc.

Slighthaze = NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top