On 2008 Mar 23, at 16:04, Frank Kubicek wrote:
Hello everyone,
After many years monitoring this listserv, I finally get my courage
up to
post a question. I hope you can help. Here goes:
Apple (the cute white dome shaped CPU model), MacOSX, FMP9
Parent table: CPos (Purchase orders)
Fields: tPos_num (key), nPos_Amt_Bas, cPos_Adj_Amt
Related table: CPoi (PO increases)
Fields: tPos_num (key), dPoi_Dat, nPoi_Amt
With CPos as the active table:
cPos_Adj_Amt = nPos_Amt_Bas + sum(CPoi::nPoi_Amt)
Assuming that all purchase increase are entered as requested, i.e,
chronologically and not retractively, how do I retrieve the amount
of the
last one entered?
Set up a SEPARATE relationship based on the exact same fields, but
specify that this new relationship be sorted in DESCENDING order by
timestamp in the related table. Then show only 1 field (amount) from
that relationship in the parent file. It will be the most recent.