>>tested it
>>
>>AWESOME
>>
>>exactly what I needed
>>
>>thanks a ton
>>
>>
>You're welcome.
Last question though
how can i add a calculation there
should be something like this
,
min([Date]) + min(CASE WHEN MIN(Type)='Local' THEN 6 ELSE 7 END) as Expiration
??
.......
DO WHILE .T.
ME.Work()
ENDDO