assignment to controls on a report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

this is statement in a print event

txtWholeComment = mstrWholeComments

txtWholeComment is control on group section, mstrWholeComments is string,
but I was told "I can not assign a value to this object" How can I do it

Clara
 
clara said:
this is statement in a print event

txtWholeComment = mstrWholeComments

txtWholeComment is control on group section, mstrWholeComments is string,
but I was told "I can not assign a value to this object" How can I do it


The text box must have an empty ControlSource property.

If you expect the text box to grow or shrink, you need to
use the Format event instead of the Print event.
 
Hi Marshall,

You are right, one of my textbox's ControlSource property was not empty and
I did the assignment in Print Event, so even after I empty the controlsource
property and did the assignment, some strings missed. When I did the
assignment in Format event, it worked. So you got two points all. Thank you
very much!

Clara


thank you so much for your help
 
Back
Top