Re: For Duane Hookum
- From: "JohnB" <JohnB@xxxxxxxxxxxxxxx>
- Date: Sun, 12 Jun 2005 12:50:16 +0100
Thanks Duane.
Ive got your suggestion to work now. Ive changed the code to the following
and set the textboxes font size to 16, then I made the box narrow,
=IIf([PrintDeep]="Yes"," ","")
Im still curious about the other suggestion though, which would seem to be
able to control the section height directly, without the need to add a
textbox. This is originally what I thought I could do. Ive asked for more
details but If I cant get it to work, Ill be happy to use your idea.
Thanks again for the help, JohnB
Duane Hookom <duanehookom@xxxxxxxxxxxxxxxxxx> wrote in message
news:eL9SLBubFHA.1392@xxxxxxxxxxxxxxxxxxxxxxx
> Apparently values in the field [PrintDeep] have some effect on the text
box
> size. You could just set the font size to something around 16 points and
> fill the box with " " (spaces). I believe the spaces might be
> enough to make the box taller.
>
> --
> Duane Hookom
> MS Access MVP
>
>
> "JohnB" <JohnB@xxxxxxxxxxxxxxx> wrote in message
> news:OOeKaRsbFHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
> > 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
> >
> >
> >
>
>
.
- Follow-Ups:
- Re: For Duane Hookum
- From: Duane Hookom
- Re: For Duane Hookum
- References:
- For Duane Hookum
- From: JohnB
- Re: For Duane Hookum
- From: Duane Hookom
- For Duane Hookum
- Prev by Date: Re: For Duane Hookum
- Next by Date: Change row font color
- Previous by thread: Re: For Duane Hookum
- Next by thread: Re: For Duane Hookum
- Index(es):
Relevant Pages
|