Hi guys,
I�m designing a form based on a set containing 3 tables:
Tbl_Employees linked to Tbl_Loan_Master (Emp_ID) which is linked to Tbl_Loan_Trans (Loan_ID)
On the main body of the form is the �master� info relating to Employee and two browses containing the other tables.
I want to put a calculated field at the top of the form (Loan_Totals) which should through using a script scan through the Tbl_Loans and get the figures from each record relating to Emp_ID
To explain it better a little �pseudocode�
In VBA I would have done a simple :
do while (Tbl_Loan_Master) Emp_ID = (Tbl_ Employees) Emp_ID
For i =1 to eof
vTot = vTot+LoanAmts
next I etc
I need another calculated field in the Loan Browse area totalling all transactions relating to a particular loan
In VBA I would have done a simple :
do while (Tbl_Loan_Trans) LoanID = (Tbl_ Loan_Master) Loan_ID
For i =1 to eof
vTot = vTot+AmountPaid
next I etc
I suspect inn Alpha Five the Tablesum() function is the way to go. Maybe I�m being thick but no matter what combination I try I get errors.
In first instance I think it should read something like:
tablesum("Tbl_Loan_Master","Emp_ID� ="tbl_Employees.Emp_ID�,� Loan_Amts")
In second instance I think it should read something like:
tablesum("Tbl_Loan_Trans","Loan_ID� ="Tbl_Loan_Master","Loan_ID� Amount_Paid")
Would some be so kind as to tell me what I should be doing??
Alan
I�m designing a form based on a set containing 3 tables:
Tbl_Employees linked to Tbl_Loan_Master (Emp_ID) which is linked to Tbl_Loan_Trans (Loan_ID)
On the main body of the form is the �master� info relating to Employee and two browses containing the other tables.
I want to put a calculated field at the top of the form (Loan_Totals) which should through using a script scan through the Tbl_Loans and get the figures from each record relating to Emp_ID
To explain it better a little �pseudocode�
In VBA I would have done a simple :
do while (Tbl_Loan_Master) Emp_ID = (Tbl_ Employees) Emp_ID
For i =1 to eof
vTot = vTot+LoanAmts
next I etc
I need another calculated field in the Loan Browse area totalling all transactions relating to a particular loan
In VBA I would have done a simple :
do while (Tbl_Loan_Trans) LoanID = (Tbl_ Loan_Master) Loan_ID
For i =1 to eof
vTot = vTot+AmountPaid
next I etc
I suspect inn Alpha Five the Tablesum() function is the way to go. Maybe I�m being thick but no matter what combination I try I get errors.
In first instance I think it should read something like:
tablesum("Tbl_Loan_Master","Emp_ID� ="tbl_Employees.Emp_ID�,� Loan_Amts")
In second instance I think it should read something like:
tablesum("Tbl_Loan_Trans","Loan_ID� ="Tbl_Loan_Master","Loan_ID� Amount_Paid")
Would some be so kind as to tell me what I should be doing??
Alan
Comment