Symptom
How to show only numeric values in prompt window when the field contains alpha numeric values
Environment
Crystal Reports 2008 (All Versions)
Resolution
- Open report in Designer select Database menu -> Database Expert
- Select the same Data Connection expand that connection
- Double click on Add Command it will open Query window
- Write the below formula in it
- SELECT <Field_Name> FROM <Table_Name> where (left(<Field_Name>,1) >= chr(48)) and (left<Field_Name> ,1) <= chr(57))
- Click on OK
- Remove the link between two tables in wizard
- Click on OK
- Now create a Parameter based on Add Command Field.
Keywords
Restrict LOV’s, Show numeric LOV, only numeric LOV, Crystal reports, alpha numeric values in LOV , KBA , BI-RA-CR-DSL , Crystal Reports on C++ Data Semantic Layer (ClassicUniverse) , How To
Product
Crystal Reports 2008 V1