Hi,
I have written a small prg using Fox 7 where I use the following SELECT statement:
SELECT *;
FROM product_transaction_header;
WHERE product_transaction_header.pth_unit_qty_id = 0;
INTO CURSOR cur_trans_w_out_puq
I then do
RECCOUNT("cur_trans_w_out_puq")
to find out how many records are in the cursor, expecting to get 234, which is the number of transactions with a 'pth_unit_qty_id' of zero. However, RECCOUNT actually returns 647 which is the total number of records in the 'product_transaction_header' table.
If I browse the cursor, the only records I can see are the 234 that I am expecting.
I have used RECCOUNT before, apparently without any problems, but now I am worrying that there is something fundamental missing from my understanding. I've looked in the Help and elsewhere on this site but I can't find anything to explain the results I am getting.
Thanks in advance for any advice,
Jake
I have written a small prg using Fox 7 where I use the following SELECT statement:
SELECT *;
FROM product_transaction_header;
WHERE product_transaction_header.pth_unit_qty_id = 0;
INTO CURSOR cur_trans_w_out_puq
I then do
RECCOUNT("cur_trans_w_out_puq")
to find out how many records are in the cursor, expecting to get 234, which is the number of transactions with a 'pth_unit_qty_id' of zero. However, RECCOUNT actually returns 647 which is the total number of records in the 'product_transaction_header' table.
If I browse the cursor, the only records I can see are the 234 that I am expecting.
I have used RECCOUNT before, apparently without any problems, but now I am worrying that there is something fundamental missing from my understanding. I've looked in the Help and elsewhere on this site but I can't find anything to explain the results I am getting.
Thanks in advance for any advice,
Jake