I am a beginner user of Crystal Reports version 8.5, accessing multiple tables in an Access 2003 database.
I need to run reports based on (selection criteria) 2 parameters {?Product Code} (an string) and {?Status Code} (a string). In the Select Expert, the statement I entered below works if I'm entering in each {?Status Code} at a time. There are 12 Status Codes total. I limit what the user can enter by using a dropdown menu.
{Product.ProductCode} = {?Product Code} and
instr({Customer.StatusCode},{?Status Code}) <>0
I used instr because in Customer.StatusCode, there can be multiple Status Codes in the same field.
If the user enters "ALL" in the {?Status Code} prompt, I want to be able to produce all 12 reports; 1 report for each Status Code for the Product Code selected.
Thanks in advance for your help!
I need to run reports based on (selection criteria) 2 parameters {?Product Code} (an string) and {?Status Code} (a string). In the Select Expert, the statement I entered below works if I'm entering in each {?Status Code} at a time. There are 12 Status Codes total. I limit what the user can enter by using a dropdown menu.
{Product.ProductCode} = {?Product Code} and
instr({Customer.StatusCode},{?Status Code}) <>0
I used instr because in Customer.StatusCode, there can be multiple Status Codes in the same field.
If the user enters "ALL" in the {?Status Code} prompt, I want to be able to produce all 12 reports; 1 report for each Status Code for the Product Code selected.
Thanks in advance for your help!