Case Statement in Crystal - Still need help

I posted earlier today and I was told to use the formula below.   This formula works, however, it stops imputing information after the first condition is met.  I want the report to list ANY of the part numbers that meet the conditions below.  That is, I want the part numbers that exist between 213 and 242, 311 and 332 and 511 and 714.  Any part number that meets ANY of these conditions I want it to show up.
However, instead the formula stops imputing part numbers after the first condition is met.  Is there any way to change the formula so that the report prints out part numbers that meet all of the conditions?
How should I change the formula?
THANK YOU!!
{JobMaterials.jmmJobAssemblyID} = {?Pm-JJASM.JAASM}
and
{JobMaterials.jmmJobID} = {?Pm-JJASM.JAJOB}
and
Select {Parts.impPartID}
Case "213" to "242": True
Case "311" to "332": True
Case "511" to "714" : True
Default:
False;

Then your selection formula should be:
{JobMaterials.jmmJobAssemblyID} = {?Pm-JJASM.JAASM}
and
{JobMaterials.jmmJobID} = {?Pm-JJASM.JAJOB}
and
Select mid(trim({JobMaterials.jmmPartID}),1,3)  ' Don't use {Parts.impPartID.  It's null here!
Case "213" to "242" : True
Case "311" to "332": True
Case "511" to "714" : True
Default:
False;
HTH,
Carl
P.S.,  I better get some serious points for hanging in this long!! 

Similar Messages

  • Still need help with case sensitive strings

    Hello guy! Sorry to trouble you with the same problem again,
    but i still need help!
    "I am trying to create a scrypt that will compare a String
    with an editable text that the user should type to match that
    String. I was able to do that, but the problem is that is not case
    sensitive, even with the adobe help telling me that strings are
    case sensitive. Do you guys know how to make that comparison match
    only if all the field has the right upper and lower case letters?
    on exitframe
    if field "t:texto1" = "Residencial Serra Verde"then
    go to next
    end if
    end
    |----> thats the one Im using!"
    There were 2 replys but both of them didnt work, and the
    second one even made the director crash, corrupting even previously
    files that had nothing to do with the initial problem..
    first solution given --
    If you put each item that you are comparing into a list, it
    magically
    makes it case sensitive. Just put list brackets around each
    item.
    on exitframe
    if [field "t:texto1"] = ["Residencial Serra Verde"] then
    go to next
    end if
    end
    Second solution given--
    The = operator is not case-sensitive when used on strings,
    but the < and > operators are case-sensitive.
    So another way to do this is to check if the string is
    neither greater than nor less than the target string:
    vExpected = "Residencial Serra Verde"
    vInput = field "t:texto 1"
    if vExpected < vInput then
    -- ignore
    else if vExpected > vInput then
    -- ignore
    else
    -- vExpected is a case-sensitive match for vInput
    go next
    end if
    So any new solutions??
    Thanks in advance!!
    joao rsm

    The first solution does in fact work and is probably the most
    efficient way
    of doing it. You can verify that it works by starting with a
    new director
    movie and adding a field named "t:texto1" into the cast with
    the text
    "Residencial Serra Verde" in the field. Next type the
    following command in
    the message window and press Enter
    put [field "t:texto1"] = ["Residencial Serra Verde"]
    You will see it return 1 which means True. Next, make the R
    in the field
    lower case and execute the command in the message window, it
    will return 0
    (true).
    Now that you know this works, you need to dig deeper in your
    code to find
    what the problem is. Any more info you can supply?

  • What is the syntax for a CASE statement in Crystal XI

    I'm having difficulty locating documentation for the use of CASE statements in Crystal syntax. My database administrator does not allow me to write SQL expressions so I need to covert the SQL below to Crystal Syntax. Can anyone help me? Thank you very much!!
    Select
       CASE
             WHEN projects.ProjType like 'S%' then 'Shopping Center'
             WHEN projects.ProjType like 'I%' then 'Industrial'
             WHEN projects.ProjType like 'O%' then 'Office Building'
             ELSE 'Other'
       END
    from projects

    Let's assume column XYZ has both numbers (1), and letters (any alphabet).
    I have a case statement on SQL to turn any value that's not 1 into 0, then I am getting a sum of that column.
    I am also grouping by Row A, B etc to get aggregated sum of column XYZ for those group.
    Now on Crystal Reports function, I need to sum up values under column XYZ for all the groups.
    If I try using sum function like below, I get an error stating:
    "A number field or currency amount field is required here"
    (sum({Command.XYZ}))
    So I thought if I can use a case statement to change the non-numbers to 0 prior to sum that will probably resolve it. But I could not get the below case statement to work either (Error: A string is required). 
    SELECT {Command.XYZ}
       Case 1:
          1 
       Default:
          0;

  • Still need help with flash player download

    I'm still having a problem with the flash player, please read my last post below:
    "I've tried everything here & still can't download the flash player. Anytime I try to download it asks me to install ADM add-on and then when I click on that, my computer freezes. How do I enable this add-on without my computer freezing? Can anyone help pls?"

    Thanks a lot for your help, it is truly appreciated.
    Date: Thu, 29 Oct 2009 18:52:38 -0600
    From: [email protected]
    To: [email protected]
    Subject: Still need help with flash player download
    You can set Flash Player to check for updates on the Global Settings Manager panel:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l
    >

  • I still need help with the Dictionary for my Nokia...

    I still need help with the Dictionary for my Nokia 6680...
    Here's the error message I get when trying to open dictionary...
    "Dictionary word information missing. Install word database."
    Can someone please provide me a link the where I could download this dictionary for free?
    Thanks!
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

    oops, im sorry, i didnt realised i've already submitted it
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

  • Case Statement in a Where clause help

    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE     11.2.0.1.0     Production"
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Hello,
    I have an APEX application that I need to build a SQL statement for a LOV (List of Values). I have a hidden filed that contains the customer type which can be an 'R' or 'B'. The query needs to be able to display two different result sets based on the customer type of 'R' or 'B'.
    If the customer type is 'R' then:
    SELECT drg_descr d, drg_code r
    FROM distance_ranges
    WHERE  drg_min_miles IN (0,5)
    ORDER BY drg_min_milesIf the customer type is 'B' then:
    SELECT drg_descr d, drg_code r
    FROM distance_ranges
    WHERE  drg_min_miles IN (0,5,10,15,20)
    ORDER BY drg_min_milesCan someone help me with what I think needs to be a case statement?
    Thanks,
    Joe

    Hi,
    You can try CASE statement with WHERE clause
    SELECT drg_descr d, drg_code r
    FROM distance_ranges
    WHERE (CASE param_cust_type
    WHEN(param_cust_type='R') THEN (drg_min_miles IN (0, 5)
    WHEN (param_cust_type='B') THEN (drg_min_miles IN (0,5,10,15,20)
    END;
    Please try and let me know if anything wrong.
    Anyone from the forum comment my code if there is any wrong.
    Thanks!
    Naresh

  • I had to remove Mavericks and do a reinstall on 10.8.5 but still need help...

    I have been trying to undo my Mavericks upgrade in October and after considerable effort I am mostly got back to 10.8.5 OS but still need a bit of help. I just want the previous OS back in place then I'll try Mavericks soon....
    1)               I never seem to pay attention so is 10.8.5 the last OSX prior?  As long as it isn't Mavericks, I want to get it installed.
    2)               I had to reformat my iMac so I have a residual elements from 10.9 and one issue that I had before was permissions. Every number of files either on other hard drives or sometimes in my same user folder was asking for permission and authentication to simply move a file.. A popular one you'll see at the bottom the person/whatever/ problem known as fetching.  Could someone just give me the general reason of this fetching and permissions problem that I ran into?  Better yet since I just want to avoid it altogether into the future tell me what's the best way to assure it disappears forever.
    3)          Another, which is kind of a big ticket item for me is the backup/restore/cover your (!!!) system. I was a good little iMac User and had Time Machine backed up for a period prior to the Mavericks install. I'm a little bit upset that TM isn't 100%....but what is...?  I need another backup/restore system in place and that's what I am looking for recommendations on.  An item that saved me a bit was that I had OS 10.8.3 on an external hard drive.  The problem with that one was it was on a partition, on one of the drives requiring to be reformatted.  It worked as a bridge consolidating files and all but was a big headache as a partition on the external. Recovery Disk did it's part but wasn't enough as well.   Is there a simple/easy idea...clone, disk images, boot from an external drive… ?
    4)          iPhoto (9.4.3) currently will not open the libraries which iPhoto (9.5) converted. Is there way to go back?  Seems the App Store and Software update don't like something. I'm getting into a loop with App Store, iPhoto and the OS. Either the software needs operating system ... then the App Store says it's incompatible or some other complaint.  Right now I have 9.4.3 iPhoto installed for OSX 10.8.5 and was only able to create a new library and the converted ones currently do not open.
    Thanks to your help

    10.8.5 is the lates ML edition.  I use TM and also carbon copy cloner as my second backup.  If I were you and you have a TM backup prior to Mavericks I would try another restore at bootup.  You should erase your drive first in that process using disk utitlites and then use TM to put back you apps and files.  The other choice is to do an internet recovery and then use TM to restore your apps and files.  That should fix the permissions issue.  I did the same thing and all was OK including getting my original iPhoto progam (9.4.3), iphoto11 and photos back.

  • CASE Statement error in function -- Please help!

    Hi All,
    I created a function in my report.
    It has a SQL query similar to the one below. The query works fine in SQL plus.
    It has a CASE statement. I am getting error at line4 at the select statement. Error is: "Encountered symbol 'SELECT'....."
    Can we use CASE statements like this in reports that use SELECT statements for RETURN EXPRESSIONS. Do we have to do any special?
    Can someone help me out of this trouble?
    THanks in advance.
    SELECT PARENT_id,
         CASE WHEN EXISTS (SELECT PARENT_id FROM CHILD CH1 WHERE CH1.PARENT_id = PARENT.PARENT_id AND UPPER(CH1.description) LIKE '%ABC%') THEN
              (SELECT CH2.MOD_id FROM CHILD CH2 WHERE CH2.PARENT_id = PARENT.PARENT_id AND UPPER(CH2.description) LIKE '%ABC%')
         ELSE
              (SELECT MOD_id FROM
              (SELECT MOD_id,PARENT_id FROM CHILD CH3 ORDER BY started) MOD2 WHERE MOD2.PARENT_id = PARENT.PARENT_id AND ROWNUM = 1
         END
    ) MOD_ID
    FROM PARENT;

    take out the parentheses after the PARENT_ID and see
    like below
    SELECT parent_id,
           CASE
              WHEN EXISTS (
                     SELECT parent_id
                       FROM CHILD ch1
                      WHERE ch1.parent_id = PARENT.parent_id
                        AND UPPER (ch1.description) LIKE '%ABC%')
                 THEN (SELECT ch2.mod_id
                         FROM CHILD ch2
                        WHERE ch2.parent_id = PARENT.parent_id
                          AND UPPER (ch2.description) LIKE '%ABC%')
              ELSE (SELECT mod_id
                      FROM (SELECT   mod_id, parent_id
                                FROM CHILD ch3
                            ORDER BY started) mod2
                     WHERE mod2.parent_id = PARENT.parent_id AND ROWNUM = 1)
           END AS mod_id
      FROM PARENT;       

  • Case Statement ....please help :)

    Hi Guys\Gals,
    Just wondering if anyone can tell me the correct usage of the case statement:)
    I want to select counts for particular date ranges to come out as seperate columns.
    Is the Sql Server Case appliable in oracle circumstances?
    This is what im doing:
    select count(case when to_char(logtime,'MM') = '01' then source else 0 end) as January
    from messagetransactionlog
    SQL Error: ORA-00932: inconsistent datatypes: expected CHAR got NUMBER
    Then im getting something like from keyword not found!!
    Plz help :)
    Thanks
    Robert

    Hopefully im not boring people now :)
    can the case statement, as follows:
    count(case when logtime = '07-07' then UNIQUES else null end) as Jul
    be changed to only count distinct rows?
    count distinct (case when logtime = '07-07' then UNIQUES else null end) as Jul
    #SQL Error: ORA-00923: FROM keyword not found where expected
    count (case when logtime = '07-07' then distinct UNIQUES else null end) as Jul
    #SQL Error: ORA-00923: FROM keyword not found where expected

  • ITunes Error Message. Still need help. Please.

    I still haven't been able to use my ITunes for about two months. I need help to fix the problem. Here's what it says when I try to start ITunes:
    Microsoft Visual C+ + runtime library
    Runtime Error!
    Program: C:\program files\itunes\itunes.exe
    This application has requested to terminate in an unusual way. Please contact the application’s support team for more information.
    If anyone can help me with this I would greatly, greatly appreciate it. Thanks.
      Windows XP  

    Have you tried un-installing iTunes, downloading the program again from Apple, and re-installing?
    It's always worth a try, as it should help you clear off anything causing the problem and start again.

  • Still needing help downloading program and using the redemption code given to me on the card I purchased at Home Depot two days ago.

    Still need ing help downloading and installing program from card I purchased at Home Depot two days ago.

    It isn't a good idea to start a second thread on the same topic. You have had responses under the first post. I suggest you go there and continue this discussion.

  • Read every font topic, but I still need help

    I have been at this for about 4 hours, and I need help.
    I read Flash Help and every font forum topic, which say
    Static Text need not use embedded fonts.
    Links to .fla and .swf files below.
    Everything shows up fine in 'Control/Test Movie'
    Using Arial font, I cannot see static text in my test .swf
    file.
    I then embedded Arial (24 pt, bold, italic - 'ArialEmbedded'
    in the library).
    Using that font on Static text, can see the text, but not in
    Arial. It is in TimesNewRoman, regular, non-italic.
    I then used the embedded font in text I described as dynamic,
    but could not see any text.
    Everything shows up fine in Control/Test Movie.
    I get around this by building .gifs using graphics packages
    and importing them,
    but the results are less than desirable. (see layer ".gif
    from outside appl."
    Links:
    http://www.ph4d.com/FlashFonts/TestingText3.fla,
    and
    http://www.ph4d.com/FlashFonts/TestingText3.swf
    I hope it's something I overlooked, and I appreciate any help
    provided.
    Thanks,
    vinceg

    Update.....
    I still cannot see text in .swf on my local machine, but I
    can see it on the web, after posting it, but the text looks awful.
    (The same text in Word lookas fine -
    http://ph4d.com/FlashFonts/TestingText3.doc)

  • I still need help. i am technically challanged.  i up graded my phonr to a 5 s.  i backed up my phone on icloud.  i cAn not get my notes or photos.   it looks like the icloud email address is wrong. how can i change it or get my missing items

    I need help. I am not good with technology. I upgraded phone today to 5 s I am missing notes and photos  it looks like the cloud address is not correct. Any suggestions

    Have you forgotten your password? - if so, you have a problem if the email address has gone dead.
    If you know your password, go to the iTunes Store, click on Account. log in and you can change the associated email address.
    If you don't know your password, and have no email address, you are going to have problems because it's difficult to see how Apple are going to identify you as the authorised owner of the account. Contact iTunes Support: go to http://www.apple.com/support/itunes/ - click on 'Other iTunes Store Features' in the list and then on 'Podcasts'. You will see a link to either 'Express Lane', which will guide you eventually to some contact options, or you may see a link to email them.

  • New ipod passcode locked out. tried other steps still need help please

    Hi passcode locked out of daughters new ipod. we backed up on computer this morning or rather it automatically backed up when plugged into itunes as directed from other posts i was reading. Then I tried to restore but it said I needed to turn off "find my ipod" which I cant because I need the passcode to get to settings. I then tried the home button power off but when i get to itunes restore ipod it tells me I need passcode. pleae help what step am I missing? go s l o w l y please I am new to mac after 20 years on pc and need help in steps that are not intuitive to me.

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • I have duplicated apps; safari, calculator, dvd player, dictionary & ical post Lion update. One of the duplicates in each case no longer works and won't let me remove them either with a message that states the os still needs them. Any ideas chaps? cheers

     

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

Maybe you are looking for

  • All of a sudden I can't burn CD-R's but still can burn CD-RW's and DVD-R's

    after I burn a music CD toast will tell me that it can't verify my cd as it has an illegal request and buffer problem. I get three of these windows with error numbers and then toast sez that it cant write the lead in and lead out for disc. this probl

  • Special Characters in a HTML region

    I recently upgraded from HTMLDB 2.0 to APEX 2.2 and I'm having trouble with some special characters.<br> <br> I have HTML region in which I display a hidden item. The hidden item (P1_TEST) has the following value:<br> <br> STRING1<br>STRING2<br>STRIN

  • Working with SAML token message protection policies in JCS-SAAS extension

    Hi I am trying to invoke a fusion apps webservice(Journal import ADF service) , for that I have to use client side policy as:- oracle/wss11_saml_token_with_message_protection_client_policy. 1) I have imported certificate into my client keystore and c

  • Concurrent execution of the same interface

    Hi, we use ODI in an application that waits for incoming data files in a directory and uploads their content into a target database. The principal question I have is this: Can ODI handle concurrent executions of a single interface? In our use case, t

  • PHP Development :(

         Hi All, Please help me, my knowledge on PHP is very limited (and when I say limited I mean very limited ) LOL I was asked by my superior to create a time management and statistic reporting application which can be accessed via ou intranet.  This