>What I want to do is everytime users print an invoice it will be save to an invoice file (as a history that the invoice has already been printed before) with the two conditions like I told you before.
>
>I.e : if users print once the field is replaced by 1, if two times the field is replaced by 2 and so on ...
This would simply require one more field to the invoice table (I recommend type Integer), which can be replaced. When user prints the invoice:
seek lnInvoice
replace TimesPrinted with TimesPrinted with 1
Or do you need something more?
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)