Need a litter help on searching tables?
I have two tables my main table that holds a certs and premium i.e. <cert> 00001 <Value> £15,250.00 <Premium> £3.00.
I need to search another table <premiums> and check the premium to make sure it is correct, this table holds values and costs as follows:-
£5000 £1.00
£10,000 £2.00
£15,000 £3.00
£20,000 £4.00
etc...
These are Max values so if the value in my main table is £10,001 I need it to search the premium table and find £3.00 as it has gone over the £10,000 and if the value is £9,999 is should pull back £2.00
If the premium in the main table matches the premium in the premium lookup table carry on if it does not mark the flag fields as .T. so I know that certificate has failed the match.
So I need a scan /endscan I presume? But not sure how to do it
Many thanks
Paul
I have two tables my main table that holds a certs and premium i.e. <cert> 00001 <Value> £15,250.00 <Premium> £3.00.
I need to search another table <premiums> and check the premium to make sure it is correct, this table holds values and costs as follows:-
£5000 £1.00
£10,000 £2.00
£15,000 £3.00
£20,000 £4.00
etc...
These are Max values so if the value in my main table is £10,001 I need it to search the premium table and find £3.00 as it has gone over the £10,000 and if the value is £9,999 is should pull back £2.00
If the premium in the main table matches the premium in the premium lookup table carry on if it does not mark the flag fields as .T. so I know that certificate has failed the match.
So I need a scan /endscan I presume? But not sure how to do it
Many thanks
Paul