J
JohnB
Hi Duane
I posted to you a while back, asking how users could contol the depth of a
section in a report. Your response was as follows.
You might want to set a control source to an expression like:
=IIf(Forms!frmYourForm!chkBox=True,String(20,Chr(13) & Chr(10)),"")
This should make the text box 20 "lines" tall.
I was unable to get this running in work and due to limited time there Ive
been playing around with this at home on a sample Access 97 db. My work db
is Access 2002.
Here Ive done things slightly differently. I have put a field called
PrintDeep in a table and made sure this is in the control source for the
report, although its not actually shown as a field on the report. This field
is updated by users entering either Yes or No from a combo called
cboPrintDeep on a form. Ive set the text box in which I put the code to
CanGrow.
Ive changed your code to the following
=IIf([PrintDeep]="Yes",String(20,Chr(13) & Chr(10)),"")
What this actually produces is two rows of tiny boxes. If I swop the Chr
values I get 10 rows of boxes, two on each row. So its deepening the section
OK but I dont want to see anything in this text box.
Can you see whats wrong with this?
Thanks, JohnB
I posted to you a while back, asking how users could contol the depth of a
section in a report. Your response was as follows.
You might want to set a control source to an expression like:
=IIf(Forms!frmYourForm!chkBox=True,String(20,Chr(13) & Chr(10)),"")
This should make the text box 20 "lines" tall.
I was unable to get this running in work and due to limited time there Ive
been playing around with this at home on a sample Access 97 db. My work db
is Access 2002.
Here Ive done things slightly differently. I have put a field called
PrintDeep in a table and made sure this is in the control source for the
report, although its not actually shown as a field on the report. This field
is updated by users entering either Yes or No from a combo called
cboPrintDeep on a form. Ive set the text box in which I put the code to
CanGrow.
Ive changed your code to the following
=IIf([PrintDeep]="Yes",String(20,Chr(13) & Chr(10)),"")
What this actually produces is two rows of tiny boxes. If I swop the Chr
values I get 10 rows of boxes, two on each row. So its deepening the section
OK but I dont want to see anything in this text box.
Can you see whats wrong with this?
Thanks, JohnB