Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Using 3 non-linked tables without seeing duplicates

$
0
0

I'm somewhat new to Crystal Reports, and I'm stuck on a report that I'm trying to make. In database expert, I have entered 3 commands to give me 3 tables.

 

The first command selects TrainingID (int), TrainingDate (date), and TrainingTopic (varchar(max) from a SQL table. I'm using a command because there is a join between two tables to give the topic and the training date. (Only mildly related, but TrainingTopic is the joined field and it doesn't show up in a few other places like the link window and in the Parameter Field value description.)

 

The second command runs a query to give me a list of employee IDs if the employee has taken a training.

 

The third command pulls a list of all employees who were employed on a selected date (the training date).

 

There are two parameters for the report TrainingID and TrainingDate.

 

My report has the name fields pulled from command 3. I use a format to highlight the names that do not appear in the trained list generated by command 2. (if isnull({EmployeesByTraining.EmployeeID}) then crRed else crBlack)

 

This works as expected. However, what I want is to put the trainingTopic at the top of the page, however when I do so each name gets repeated 5 times in my list.

 

Ideally, I would like to select a trainingTopic from a list. The related trainingID and TrainingDate would then populate down as the parameter fields for commands 2 and 3. At the top of the page I would display the trainingTopic, with the list of the names in the middle of the page.

 

Any ideas?


Viewing all articles
Browse latest Browse all 10482

Latest Images

Trending Articles



Latest Images