CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2011
    Posts
    2

    Exclusion linking

    First post so please be gentle!

    I'm using Crystal 8.5 and I have two simple tables, one is a complete list of stock-codes, the other a list of stock-codes that I'd like to exclude from the end report. I'm guessing it's all about the linking or maybe it's easier to do with a formula, but I've read through the help and scoured the internet but still my results don't make sense - can anybody point me in the right direction please?

    Many thanks.

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Exclusion linking

    Welcome to CodeGuru forums !

    Never tested myself, but try the next :

    Let's say we have Table1.StockCode and Table2.StockCode
    Add to the report
    Link each other using StockCode
    Create a RecordSelection Formula as :
    Code:
    IsNull({Table2.StockCode}) = True
    What we're doing is filtering the rows where the link was successful (when {Table2.StockCode} is not null)

    JG

  3. #3
    Join Date
    Aug 2011
    Posts
    2

    Re: Exclusion linking

    That's done it - thank you for your help!

  4. #4
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Exclusion linking

    You're welcome!
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

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

Featured