Problem: Creating a Default Value for a field in a subform when a field in the subform & form match.
I'm trying to create a payroll database for a small home business that I have that has had (and hopefully will continue to have) lots of growth.
I have created a Transaction table to hold the hours, date, location of work (as the employees work at various locations), pay rate, and employee id. the employee id field has a one-to-many relationship with my employee information table where the employee name, address, and phone number is stored.
I don't think I can create this type of default value in the transaction table, so I've been trying to create it in the subform, but to no avail.
I saw the post http://www.thescripts.com/forum/thread634973.html that discussed a very similar problem and I tried to utilize the code that was placed there, but even after replacing the necessary fields, it still isn't working.
As all the payroll period entries (transactions) will be in one table, the default value for the pay rate needs to be the last pay rate for the same employee id.
Any suggestions?
THANKS IN ADVANCE!