assignment to controls on a report

C

clara

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
 
M

Marshall Barton

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.
 
C

clara

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top