hi all...
my question is:
Is it possible to change the caption of one of the labels at runtime of a datareport?
like:
Code:
DataReport1.Label1.Caption = "Hello..."
thx in advance...
Printable View
hi all...
my question is:
Is it possible to change the caption of one of the labels at runtime of a datareport?
like:
Code:
DataReport1.Label1.Caption = "Hello..."
thx in advance...
What do you want to change it to? Because there are easy ways to do stuff like the time, date, title, etc ?
What i want to do is show in the top of the report the sql statement that made the report...Quote:
What do you want to change it to? Because there are easy ways to do stuff like the time, date, title, etc ?
try this....
Put the label on the datareport, for the caption put "%i"
then, before you show the report, use this :
DataReport1.Title = sqlStatement 'your sql
see if that works
:)
thx for your fast reply, it worked fine, you had helped me a lot.
by the way what does "%i" means ?
I don't know what to call it besides a special character. It puts the report title in place of the %i. there are others like "%t" for the time, they are in the help files some where :rolleyes:
ok, thx crptcblade...