(Msg. 1) Posted: Tue Sep 02, 2008 11:01 am
Post subject: rectangle Archived from groups: microsoft>public>access>reports (more info?)
Hi
I have a rectangle in the detail section of a report with the below code
attached to it in the on format event.
If [HostGuest] = "host" Then
[Box16].BackColor = 9824951
Else
[Box16].BackColor = 6008319
End If
My problem is I have several memo fields on the report that need the ability
to grow. How can I have the rectangle “Box16” grow as the detail section
grows? I found the below code to make a rectangle in this discussion group.
But it doesn’t allow for my If/Then statement.
Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height), , B
(Msg. 2) Posted: Tue Sep 02, 2008 3:27 pm
Post subject: Re: rectangle [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Chuck216 wrote:
>I have a rectangle in the detail section of a report with the below code
>attached to it in the on format event.
>
>If [HostGuest] = "host" Then
> [Box16].BackColor = 9824951
>Else
> [Box16].BackColor = 6008319
>
>End If
>
>My problem is I have several memo fields on the report that need the ability
>to grow. How can I have the rectangle Box16 grow as the detail section
>grows? I found the below code to make a rectangle in this discussion group.
>But it doesnt allow for my If/Then statement.
>
>Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height), , B
If [HostGuest] = "host" Then
Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height),
9824951, BF
Else
Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height),
6008319, BF
End If
(Msg. 3) Posted: Wed Sep 03, 2008 5:43 am
Post subject: Re: rectangle [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thats works
Thanks
"Marshall Barton" wrote:
> Chuck216 wrote:
> >I have a rectangle in the detail section of a report with the below code
> >attached to it in the on format event.
> >
> >If [HostGuest] = "host" Then
> > [Box16].BackColor = 9824951
> >Else
> > [Box16].BackColor = 6008319
> >
> >End If
> >
> >My problem is I have several memo fields on the report that need the ability
> >to grow. How can I have the rectangle “Box16” grow as the detail section
> >grows? I found the below code to make a rectangle in this discussion group.
> >But it doesn’t allow for my If/Then statement.
> >
> >Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height), , B
>
>
> If [HostGuest] = "host" Then
> Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height),
> 9824951, BF
> Else
> Me.Line ((0,0)-Step(Me.Width,Me.Section(0).Height),
> 6008319, BF
> End If
>
> --
> Marsh
> MVP [MS Access]
>
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum