Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 02 Dec 2008 at 11:28am
You will probably have to use a Command to write the whole SQL to get your data instead of using the tables directly in Crystal.
What type of database are you connecting to? Crystal doesn't allow commands for all of them, but will for the "standards" - MS SQL Server (through an OLE DB connection - I'm not sure if it's available on an ODBC connection), Oracle, etc. To see if it's available for your database, open your report and then open the database connection. If you see "Add Command" just under the database name, then you can write your own SQL to get the report data.
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 03 Dec 2008 at 8:41am
Actually, you can specify parameters.
- Remove any existing parameters in your report that you want to use in the SQL.
- In the window where you enter the SQL for the command, you have an option for creating parameters. Create the parameters that you want to use in the SQL.
- In the SQL, use Crystal syntax for the parameters instead of the syntax for your database - e.g., "where mytable.myfield = {?parametername}".
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