I have a form that has fields that I need to drive creating records on another table when the values are provided.
Value table: tblPayments_PayrollDeduction_Info
Destination table: tblPayments_PayrollDeduction_Amounts
tblPayments_PayrollDeduction_Info has the following fields:
tblPayments_PayrollDeduction_Amounts has the following fields:
I need to have the database create corresponding records in tblPayments_PayrollDeduction_Amounts based on the values provided in tblPayments_PayrollDeduction_Info.
For example
I need to have 4 records created in tblPayments_PayrollDeduction_Amounts
dtmPayrollDeduction_Date | curPayrollDeduction_Amount
6/3/16 | $100.00
6/17/16 | $100.00
7/1/16 | $100.00
7/15/16 | $100.00
I am not sure where to start with something like this, any help anyone can give would be greatly appreciated.
Value table: tblPayments_PayrollDeduction_Info
Destination table: tblPayments_PayrollDeduction_Amounts
tblPayments_PayrollDeduction_Info has the following fields:
intPayrollDeductionInfo_Count - this is the number of deductions being taken
dtmPayrollDeductionInfo_Start - this is the date of the first deduction
intPayrollDeductionInfo_Frequency - this is the number of days between each deduction
intPayrollDeductionInfo_Amount - this is the total amount once all deductions are taken
tblPayments_PayrollDeduction_Amounts has the following fields:
dtmPayrollDeduction_Date - this is the date for each deduction
curPayrollDeduction_Amount - this is the amount of each deduction
I need to have the database create corresponding records in tblPayments_PayrollDeduction_Amounts based on the values provided in tblPayments_PayrollDeduction_Info.
For example
intPayrollDeductionInfo_Count = 4
dtmPayrollDeductionInfo_Start = 6/3/16
intPayrollDeductionInfo_Frequency = 14
curPayrollDeductionInfo_Total = $400.00
I need to have 4 records created in tblPayments_PayrollDeduction_Amounts
dtmPayrollDeduction_Date | curPayrollDeduction_Amount
6/3/16 | $100.00
6/17/16 | $100.00
7/1/16 | $100.00
7/15/16 | $100.00
I am not sure where to start with something like this, any help anyone can give would be greatly appreciated.