Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Report Formatting

Posted on 2013-11-22
3
Medium Priority
?
241 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 40

Accepted Solution

by:
PatHartman earned 2000 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 40

Expert Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

876 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