apple
New Member
im new in progress programming and im working on a program to retrieve data from two tables.
i used "for each" loops and it worked properly. however, i have a problem with the processing time. it took 1min to process 30 records... 3 hrs to process 4 thousand records... this is very unacceptable.
i heard joining tables would make processing faster and i was introduced to outer-join. however it will only work with the "open query" syntax. so i tried using the statement. here comes the problem: it will always give me a compiler message "Index fields of table 1 must be fields in table 2"
here's my code:
open query q1 for each subsmst_f,
each tbytdsum outer-join of subsmst_f
where tbytdsum.idnum=subsmst_f.idnum no-lock.
i hope you could help me on this.
i used "for each" loops and it worked properly. however, i have a problem with the processing time. it took 1min to process 30 records... 3 hrs to process 4 thousand records... this is very unacceptable.
i heard joining tables would make processing faster and i was introduced to outer-join. however it will only work with the "open query" syntax. so i tried using the statement. here comes the problem: it will always give me a compiler message "Index fields of table 1 must be fields in table 2"
here's my code:
open query q1 for each subsmst_f,
each tbytdsum outer-join of subsmst_f
where tbytdsum.idnum=subsmst_f.idnum no-lock.
i hope you could help me on this.