Announcement

Collapse
No announcement yet.

Duplicates in Crystal Reports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Duplicates in Crystal Reports

    Using Crystal to link between Actinic and back office database on the product reference. All is well but it also returns product duplicates (1!ref, 2!ref etc) ... any suggestions on how to filter the main product only would be greatly welcomed.

    v8.5.0
    Crystal v8.5 Pro


    Bikster
    SellerDeck Designs and Responsive Themes

    #2
    I quit 5 minutes too soon .... in case of use to others ...

    Code:
    not ({Product.Product Reference} startswith ["1!", "2!", "3!", "4!"])
    adding in more n! as required


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      May be possible - and shorter to use
      Code:
      not ({Product.Product Reference} contains ["!"])
      Last edited by wjcampbe; 20-Mar-2008, 05:32 PM. Reason: forgot the code tags
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #4
        That would be a more elegant (a powerful) solution .. tried it and Crystal does not appear to have the ability to use the operator "contains".


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          It may be if InStr(Product.Product Reference, "!") or something similar - there may be info on matching a substring in the CR help.
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            Quick check of CR function search results seems to indicate Bill's right.
            Code:
             if instr({Product.Product Reference} ,"!") = 0 then
            Fergus Weir - teclan ltd
            Ecommerce Digital Marketing

            SellerDeck Responsive Web Design

            SellerDeck Hosting
            SellerDeck Digital Marketing

            Comment


              #7
              Thanks Fergus.

              Jont - Fergus code will need to be changed to

              Code:
              if instr({Product.Product Reference} ,"!") < 1 then
              to give the 'not a duplicate' condition, but once working, will never need changed, no matter how many duplicates you have.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                Ahem - *cough* - don't know what you mean Never made that mistake
                Fergus Weir - teclan ltd
                Ecommerce Digital Marketing

                SellerDeck Responsive Web Design

                SellerDeck Hosting
                SellerDeck Digital Marketing

                Comment


                  #9
                  Ahh! The power of the edit button

                  I'd still use < 1, just in case CR sees False as -1 the same as Visual Basic.
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment


                    #10
                    Good point well made sir - I'll decline any further edits this time
                    Fergus Weir - teclan ltd
                    Ecommerce Digital Marketing

                    SellerDeck Responsive Web Design

                    SellerDeck Hosting
                    SellerDeck Digital Marketing

                    Comment


                      #11
                      Cheers guys - as always more than one way to skin the cat.

                      Loving Crystal at the moment - only really dabbled with changing Actinic reports but the power of the thing is amazing.. I'm like a kid with a new toy at the moment


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment

                      Working...
                      X