Crystal 8.5 and SQL Server 2000
I have a formula in my report that returns a comma delimited list of states (@paramSTATES). It is based on a variable coming from a subreport (strSTATES). For example, it might be 'VA','MD','DC'
The datasource for my report will be this stored proc (sp_Emergency). I need to pass the value from this formula (or variable) into the stored procedure so I can use it in a select statement, such as, Select ID, LAST_NAME from Customers where STATE in @paramSTATES which would actually read as Select ID, LAST_NAME from Customers where STATE in ('VA','MD','DC')
I'm sure it's simple, but what's the syntax to do this?
Anna Jaeger
iMIS Database Support
I have a formula in my report that returns a comma delimited list of states (@paramSTATES). It is based on a variable coming from a subreport (strSTATES). For example, it might be 'VA','MD','DC'
The datasource for my report will be this stored proc (sp_Emergency). I need to pass the value from this formula (or variable) into the stored procedure so I can use it in a select statement, such as, Select ID, LAST_NAME from Customers where STATE in @paramSTATES which would actually read as Select ID, LAST_NAME from Customers where STATE in ('VA','MD','DC')
I'm sure it's simple, but what's the syntax to do this?
Anna Jaeger
iMIS Database Support