Hello,
I am new at FOXPRO, Please help!
Within in my DO WHILE loop, I access other tables, and loose the currency of my primary table that I am looping thru.
It appears that after the first record in my primary table is processed, the EOF() condition is prematurely met, because I am accessing other tables.
How do I maintain currency of my primary table?
I would truly appreciate the HELP!!!!!
Below are snipets of my code:
use email3_input
do while .not. eof()
(do some processing)
select max(vin_pos) ;
from eVin_Pos_tbl ;
where email = h_email ;
and branch = h_br
(do some more processing)
select vin_pos ;
from eVin_Pos_tbl ;
where email = h_email ;
and branch = h_br ;
and vin = h_vin
(do some more processing)
insert new record into a table
SKIP
enddo
I am new at FOXPRO, Please help!
Within in my DO WHILE loop, I access other tables, and loose the currency of my primary table that I am looping thru.
It appears that after the first record in my primary table is processed, the EOF() condition is prematurely met, because I am accessing other tables.
How do I maintain currency of my primary table?
I would truly appreciate the HELP!!!!!
Below are snipets of my code:
use email3_input
do while .not. eof()
(do some processing)
select max(vin_pos) ;
from eVin_Pos_tbl ;
where email = h_email ;
and branch = h_br
(do some more processing)
select vin_pos ;
from eVin_Pos_tbl ;
where email = h_email ;
and branch = h_br ;
and vin = h_vin
(do some more processing)
insert new record into a table
SKIP
enddo