Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    16

    Unanswered: formatting in reports

    Hi,

    I have a table with about 30 records and all these records feed into 1 report. How do format the report that the top 10 records are bolder than the rest.

    Thanks for your help.
    mkk

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,418
    Provided Answers: 7
    First You need know the 10 ten records
    let save you have a flag setup alreadly


    Need to add some code to the On Format of Detail section of the report.

    Code:
    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    
    If Flag <= 10 Then 
          
             ControlName.FontBold = True
    
    Else
    
             ControlName.FontBold = False
    
    End if
    
    End Sub
    .FontBold is the trick
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Mar 2004
    Posts
    16
    I dont think I can use a flag as the dataset changes everyweek but number (30 is contant). Could I do a query to flag the top 10 ?

  4. #4
    Join Date
    Mar 2004
    Posts
    16
    edit

  5. #5
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Originally posted by mkk
    I dont think I can use a flag as the dataset changes everyweek but number (30 is contant). Could I do a query to flag the top 10 ?
    Make a TextBox in your report and write inside it =1 use it as a counter for the whole report and not for the Group.

    Check the value of this TextBox as myle told before.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •