Before you can reference a table, you must take some action to make it accessible; a find of some sort, or a create. In your original post, you referenced the PREmpMas table, as a test condition, but you had no record to match against. The example brings a record from
the PREmpMas table into memory, so that it can be used in the second part of the for each to find the relevant records. In effect, an inner join, since we will only return sets of PRempMas and PRCheck records.
HTH.
Darren Mann wrote:
/* ================================================================= */
Programmers, with their inbuilt sense of order and discipline, should really be running the world.
William E. Colls Tel 613 591 0079
PROComputer Systems Fax 613 591 3924
67 Willow Glen Dr www.procomsys.com
Kanata Ontario Canada K2M 1T1 PEG Member 1998051404
Specialists in Progress software development since 1985
the PREmpMas table into memory, so that it can be used in the second part of the for each to find the relevant records. In effect, an inner join, since we will only return sets of PRempMas and PRCheck records.
HTH.
Darren Mann wrote:
> I found it, disregard last reply. Sorry. PREmpMas - spelling and no EmpId--
> field in PRCheck. Thanks for the info. What does the dual Each statement
> seperate by a common do that is different??
>
> Darren
>
> > -----Original Message-----
> > From: William Colls [mailto:william@...]
> > Sent: Friday, July 14, 2000 3:41 PM
> > To: vantage@egroups.com
> > Subject: Re: [Vantage] Payroll Envelopes using Results, help.
> >
> >
> > I think your "for each" should be
> >
> > FOR EACH vantage.PRMasEmp,
> > EACH vantage.PRCheck
> > where (vantage.PRCheck.Company = vantage.PREmpMas.Company)
> > and (vantage.PRCheck.EmpID = vantage.PREmpMas.EmpID)
> > and (vantage.PRCheck.EmpLink = vantage.PREmpMas.EmpLink)
> > BREAK BY vantage.PREmpMas.EmpID:
> >
>
> ------------------------------------------------------------------------
> Still looking for the complete Application Server solution?
> Find answers and a $75 gift certificate at the Intraware App Server
> Webinar. Sign up at:
> http://click.egroups.com/1/6756/13/_/411782/_/963834647/
> ------------------------------------------------------------------------
>
> We no longer allow attachments to files. To access/share Report Files, please go to the following link: http://www.egroups.com/files/vantage/
> (Note: If this link does not work for you the first time you try it, go to www.egroups.com, login and be sure to save your password, choose My Groups, choose Vantage, then choose Files. If you save the password, the link above will work the next time you try it.)
/* ================================================================= */
Programmers, with their inbuilt sense of order and discipline, should really be running the world.
William E. Colls Tel 613 591 0079
PROComputer Systems Fax 613 591 3924
67 Willow Glen Dr www.procomsys.com
Kanata Ontario Canada K2M 1T1 PEG Member 1998051404
Specialists in Progress software development since 1985