Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

duplicate record base on a quantity field

Status
Not open for further replies.

Pablito9

IS-IT--Management
Jan 1, 2006
22
NL
Hi All

I’m trying to duplicate a record based on a quantity field of a Progress database table using Crystal Reports 8.5.
The connection to the database is through a ODBC MERANT 3.60 32-BIT Progress SQL92 v9.1D driver (pgpro915.dll).

I only use one table; within this table there is a quantity field. With a parameter is select only one record from the table. Now I would like to duplicate this record x times as the value in the quantity field.


Many Thanks in advance

Erik
 
I'm not clear what you want. Is it to repeat the same data on the basis of a field in the record. E.g. [Oranges 2], [Apples 3], [Pears 1] should appear.

Oranges
Oranges
Apples
Apples
Apples
Pears

You could do that with multiple detail sections: right-click and [Insert Section Below]. Suppress the second detail if the quantity is less than 2. The third if it is less than 3. And so on.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
I’ll try to be more precisely.
The record I’m retrieving from the database is unique, so when using the parameter field only one record will be displayed.
So when searching for a “Orange” only one record containing “Orange” will be displayed.
This record contains a quantity field that has a value 3

So what I would like to see the following;

Orange
Orange
Orange


If the quantity field that has a value 2 then the result will be;

Orange
Orange

I hope its clear now
 
Ok, but is it possible to do so using only one table?
 
In that case, you need to go back to Plan A. Create the Repeater table...

Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top