>Thanks Hilmar and Nami
>
>The tables has already been delivered and I would not
>like to change their fields
>I was lookig for something similar to form method
>
>I would like to insert this code in my report
>
>If ap.state = "SP" delivery_date = ap.date + 5
>else
>If ap.state = "PR" delivery_date = ap.date + 7
>endif
>
>Moises
Where do you want to display this field?
Look into ICASE() function or IIF() if you only have 2 cases.
If it's not broken, fix it until it is.
My Blog