ammodog6942
Programmer
I am trying to do a batch insert from a detail page. I have a department table, employee table, and a employee financial table. On the detail page I can bring over the employeeid, departmentid, and the financialid and populate the page with all employees and their different accounts:
Example:
Smith, john | IT Department | Account1
Smith, john | IT Department | Account2
Taylor, Suzy | HR | Account 1
I then want to enter in some time sheet number values for all and have it inserted in to the database table tbldepttransactions while bringing over each employeeid, departmentid, and the financialid along with the entered values.
Example:
Smith, john | IT Department | Account1 |25|32|5|
Smith, john | IT Department | Account2| 23|1|3|
Taylor, Suzy | HR | Account 1 |25|32|5|
I can do this one at a time but Im having problems with the multiple entries on one page, I've thought of possibly doing some kind of loop but I am unsure on how to accomplish this. Thank You for your help
Example:
Smith, john | IT Department | Account1
Smith, john | IT Department | Account2
Taylor, Suzy | HR | Account 1
I then want to enter in some time sheet number values for all and have it inserted in to the database table tbldepttransactions while bringing over each employeeid, departmentid, and the financialid along with the entered values.
Example:
Smith, john | IT Department | Account1 |25|32|5|
Smith, john | IT Department | Account2| 23|1|3|
Taylor, Suzy | HR | Account 1 |25|32|5|
I can do this one at a time but Im having problems with the multiple entries on one page, I've thought of possibly doing some kind of loop but I am unsure on how to accomplish this. Thank You for your help