>I understand this pretty much, but not really this line.
>
if indexseek(InvLinesCursor.Product_ID, .t., 'product', product_id')
>
>However, I tried it anyway and when I save the code it tells me "Function Name missing". I suspect I'm missing a delimiter of some sort.
You omitted a single quotation mark before product_id.
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)