Joined: 14 Mar 2007
Location: United States
Online Status: Offline
Posts: 53
Topic: All functionality using parameters Posted: 19 Feb 2008 at 11:48am
Can we create a parameter field in crystal that can pull all the records in the database. I have a requirement where user can submit a value in the prompt or pull all records from the database.
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 19 Feb 2008 at 12:33pm
Yes, you have to add a generic item to the list of values and then use that in the record selection formula. For example, you could add the value 'All' to the list of values, and then the record selection formula would be:
{?prompt}="ALL" OR {table.field} = {?prompt}
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum