According to Ido Millet's Faq FAQ149-3226
Problem:
A typical situation is where a number of label copies must be printed for each order according to the {quantity} field in each order record.
Solution:
Create a "REPEATER" table with a single column (How_Many) that looks like this:
How_Many
1
2
3
4
5
6
etc.
Now, in your report, add the Repeater Table and add a join
condition of:
-----------------------------------
Order.quantity >= Repeater.How_Many
-----------------------------------
If the ">=" join option is not available, remove the join to the REPEATER table and create this condition in the Record Selection condition:
--------------------------------
{Order.quantity} >= {Repeater.How_Many}
My problem:
(I am using crystal 8)
The above method works fine if the database field is a "number" but the database field I am accessing is a "String" In the record selection condition I have given
tonumber({Order.quantity}) >= {Repeater.How_Many}
but it says "database dll error and doesnot work". Any suggestions?
Problem:
A typical situation is where a number of label copies must be printed for each order according to the {quantity} field in each order record.
Solution:
Create a "REPEATER" table with a single column (How_Many) that looks like this:
How_Many
1
2
3
4
5
6
etc.
Now, in your report, add the Repeater Table and add a join
condition of:
-----------------------------------
Order.quantity >= Repeater.How_Many
-----------------------------------
If the ">=" join option is not available, remove the join to the REPEATER table and create this condition in the Record Selection condition:
--------------------------------
{Order.quantity} >= {Repeater.How_Many}
My problem:
(I am using crystal 8)
The above method works fine if the database field is a "number" but the database field I am accessing is a "String" In the record selection condition I have given
tonumber({Order.quantity}) >= {Repeater.How_Many}
but it says "database dll error and doesnot work". Any suggestions?