>Thanks, that does work for small sets of known value(s) but I need a more generic solution. There will be from 1 to several hundred PKs in the VFP cursor and their values won't be known in advance...
I think Claudio's suggestion is OK. You have to build the string with the SQL command - this you do in VFP - and then send the string to SPT.
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)