Create multiple records in the same access table from one entry -


i building payroll prep solution multiple stores , 100 employees. there complex math involved multiple bonus , hours calculations. built out working model in excel, seems access better solution due sheer amount of records , complexity of processing has happen. haven't done lot in access.

i need build data entry form user can enter multiple types of hours , processed separate records (1 regular, ot, dt etc...) using same employee information. each pay type has different gl codes etc... output report hr can use verify , enter proper hours. carrying hours records in 1 table field each pay type , employee information. i'm interested in whether makes sense versus separate table each hours type; or if carry in 1 table, best way process data capture (i need produce shows each employee, pay type etc in summary form.

any appreciated.

i can tell traditional way keep pay types in separate table.

however, if pay types relatively stable and/or small in number there's no reason can't keep them in 1 row. have report like:

select "1" paytype, sum(payroll.pay1) hours payroll union select "ot" paytype, sum(payroll.payot) hours payroll union select "dt" paytype, sum(payroll.paydt) hours payroll 

i use first method, in case you'd have table pay type , gl, table employees, , many-to-many table employeeid, paytypeid , hours. gives flexibility in case need add or remove pay types, or create new report layouts.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -