Solved

Report Formatting

Posted on 2013-11-22
3
230 Views
Last Modified: 2013-11-22
I have report that I am changing various field and formats based on opening arguments and data criteria.

I would like to a hide a line on the report "RxLine" under conditions.  I am to hide it by setting is border color to white.  I have used this technique in the past.  The report is called from a form.

I am trying to get the following to execute but it is not.  I have tried it under page activate as well.  

Private Sub Report_Activate()
   
    If [JobType] <> "Rx" Or [OpenArgs] = "PT" Then
        Me.RxLine.BorderColor = 16777215 'White
    Else
        Me.RxLine.BorderColor = 0 'Black
    End If
   
End Sub


How can I execute this?

Thank you.
0
Comment
Question by:thandel
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39669047
You are using the wrong event.  You need to use the Format event of the section that contains the RxLine control.
0
 

Author Closing Comment

by:thandel
ID: 39669341
Thanks I didn't even thinkknow of that.
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 39669562
You're welcome:)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Getting Run-time error 91 - Object Variable or With Block Variable not set 20 35
vba sql wild card passing in code 3 23
Question about DB Schema 27 54
DCount Type Mismatch 2 22
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question