Does anyone know how to dynamically change a label caption from within a VB report? Doing this in Powerbuilder is really easy, but I found nothing regarding this on VB Reports. HELP!!! :( :confused: :eek:
Printable View
Does anyone know how to dynamically change a label caption from within a VB report? Doing this in Powerbuilder is really easy, but I found nothing regarding this on VB Reports. HELP!!! :( :confused: :eek:
Something like this:
Hope this helps,Code:Me.Sections("Section4").Controls("Label1").Caption = "This is a new caption"
Thanks Negative0... You're certainly a Positive dude! :cool:
Q2: Is it possible to load a report without having to create a DataEnvironment - I mean to create a report with dumb values - with no DB connection or query, just to see a couple of labels and print it?
Thanks again! :D
Juba
Nope, The data report requires some sort of database link. You do not have to create a dataenviroment for it though. You can set the database through code.
Dim rs as new ADODB.Recordset
rs.open "SELECT * FROM TABLE",objConn,adOpenForwardOnly, adLockReadOnly
set Me.DataSource = RS
Hope this helps,
Thanks man, It really helps!!! :D
Best regards,
Juba
is this also applicable to data report textboxes?