Assaining a value to a textbox dynamically

  • Thread starter Thread starter Ram
  • Start date Start date
R

Ram

Hi,

I have to generate a report by processing a certain column
values of each row of a recordset and send the summary
values to different textBoxes to display on my report. Is
there a way to assaign a value to textBox dynamically?

Thanks,
ram
 
You can use code in the On Format event of the section containing the
unbound text boxes.

Me.txtStartDate = rs("StartDate")
 
Ram said:
I have to generate a report by processing a certain column
values of each row of a recordset and send the summary
values to different textBoxes to display on my report. Is
there a way to assaign a value to textBox dynamically?


Sure, just use the text box section's Format event to set
it.

Me.textbox = somevalue
 
I have to send a calculated value which is in a field
variable defined in the report module. When I try to
assaign this an error message occures
"can't reffera field when it doesn't have control
 
Back
Top