Hi, I am doing an employee pay salary per semi-month period, cut-off on the 15th, and end of month. My current problem is how to lookup data from the Employrate table so that the following fields from the Attendance table will automatically be retrieved (pls see attachments for tables, sets, forms, sample data):
1. Attdate (date worked)= data from calendar (from having the StartDate entered, the embedded browse table will have the list of dates from the calendar table, e.g. SartDate=06/01/2009, so that Attdate will automatically be populated with dates 06/01/2009 up to 06/15/2009). This forces the user to just input from dates within the desired period
= currently, I need to manually enter Attdate in the Attendance table. With manually entering the Attdate, I am able to lookup the proper info from the Calendar table (to give me Ppid, DateType), and from Xsrate table (to give me Factor, OT, ND fields), but am unable to lookup any data from the Employrate table.
2. Rpd (Rate/day) and Rpm (Rate/month) = data from employrate table, to be chosen based on Attdate inputted so that the correct rate will be supplied (e.g. if Attdate=06/01/2009, Rpd=10.00, and Rpm=0.00; if Attdate=07/16/2009, Rpd=0.00 and Rpm=1000.00. Currently, it's not able to lookup from the employrate table and is giving me a value of 0.00)
Current limitation: My situation requires that Dates & Time in/out data be manually entered.
Form#1 from set employrate: Main table=Employees, embedded browse table=Employrate
Form#2: from set employatt: Main table=Employees, embedded browse table=Attendance (the Calendar table doesn't come up in the list of table choices for the embedded browse genie)
Employees table: contains employee data, each employee is given a unique EmployeeID
Employrate table: contains rates validity per employee (rates can either be on a perday or per month basis)
Period table: data is pre-entered
Calendar table: data is pre-entered
Xsrate table: data is pre-entered
Attendance table: manually entered Date, RPDay, RPMnth (which I'm trying to figure out how to auto-lookup), and time in/out (designed to be manually entered); current auto-lookup from Calendar link & lookup: PeriodID, DateType; current auto-lookup from Xsrate link & lookup: Factor, OT, ND
I am sure that my set is incorrect, considering that PeriodID is one-to-many relation to Calendar, but I don't know of any other way to link these correctly in the same set to use in my form. I tried linking Employees to Employrate using 1-many but it won't give me the data in the Attendance table either...
Is there any way to accomplish my required outcomes using just the genie, without manual XBasic coding involved? I've never done coding at all and have usually just used the functions available...
Thanks very much for anyone willing to shed some light on this...
1. Attdate (date worked)= data from calendar (from having the StartDate entered, the embedded browse table will have the list of dates from the calendar table, e.g. SartDate=06/01/2009, so that Attdate will automatically be populated with dates 06/01/2009 up to 06/15/2009). This forces the user to just input from dates within the desired period
= currently, I need to manually enter Attdate in the Attendance table. With manually entering the Attdate, I am able to lookup the proper info from the Calendar table (to give me Ppid, DateType), and from Xsrate table (to give me Factor, OT, ND fields), but am unable to lookup any data from the Employrate table.
2. Rpd (Rate/day) and Rpm (Rate/month) = data from employrate table, to be chosen based on Attdate inputted so that the correct rate will be supplied (e.g. if Attdate=06/01/2009, Rpd=10.00, and Rpm=0.00; if Attdate=07/16/2009, Rpd=0.00 and Rpm=1000.00. Currently, it's not able to lookup from the employrate table and is giving me a value of 0.00)
Current limitation: My situation requires that Dates & Time in/out data be manually entered.
Form#1 from set employrate: Main table=Employees, embedded browse table=Employrate
Form#2: from set employatt: Main table=Employees, embedded browse table=Attendance (the Calendar table doesn't come up in the list of table choices for the embedded browse genie)
Employees table: contains employee data, each employee is given a unique EmployeeID
Employrate table: contains rates validity per employee (rates can either be on a perday or per month basis)
Period table: data is pre-entered
Calendar table: data is pre-entered
Xsrate table: data is pre-entered
Attendance table: manually entered Date, RPDay, RPMnth (which I'm trying to figure out how to auto-lookup), and time in/out (designed to be manually entered); current auto-lookup from Calendar link & lookup: PeriodID, DateType; current auto-lookup from Xsrate link & lookup: Factor, OT, ND
I am sure that my set is incorrect, considering that PeriodID is one-to-many relation to Calendar, but I don't know of any other way to link these correctly in the same set to use in my form. I tried linking Employees to Employrate using 1-many but it won't give me the data in the Attendance table either...
Is there any way to accomplish my required outcomes using just the genie, without manual XBasic coding involved? I've never done coding at all and have usually just used the functions available...
Thanks very much for anyone willing to shed some light on this...
Comment