WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

rectangle

 
   Home -> Office other -> Reports RSS
Next:  Spelling is correct in design view, but incorrect..  
Author Message
Chuck216

External


Since: Jan 22, 2007
Posts: 18



(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


Any help will be greatly appreciated
Back to top
Login to vote
Marshall Barton

External


Since: Dec 07, 2003
Posts: 6117



(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

--
Marsh
MVP [MS Access]
Back to top
Login to vote
Chuck216

External


Since: Jan 22, 2007
Posts: 18



(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]
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET