Results 1 to 3 of 3

Thread: fields in CR9

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    fields in CR9

    Hi
    I have a CR9 with Access Database.The report shows many fields from the database but many of those fields are NULL.So I want the report to only show the fields that contain values.
    For example if my report contain the following

    Customer(Field heading) Customer(Field value)
    If the report does not contain a value of customer,I want to not show neither
    Customer(Field heading) nor Customer(Field value)

    How can I do it?
    thanks

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: fields in CR9

    Ok , for this goto report then selection formulas then record selection and then write the formula like this

    isnull(Fild name)=false
    Thanks and Regards,

    Muhammad Abbas

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    Re: fields in CR9

    mabbas110 I didn't catch your proposition
    my code is:
    VB Code:
    1. Set rep = appl.OpenReport("C:\report4.rpt", 1)
    2. rep.RecordSelectionFormula = "{Btest.BID} =" & nar
    3. rep.ExportOptions.DiskFileName = "C:\report.doc"
    4. rep.ExportOptions.DestinationType = crEDTDiskFile
    5. rep.ExportOptions.FormatType = 14
    6. rep.Export False
    where should I place isnull(Fild name)=false?
    thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width