S
Spiffus
Howdy
I have a question about filling in a field's value. I am actually modifying the sample "Time and Billing" database in Access 2003, and I have a question about filling in values in a field based on values in another field. I have seen this done with a macro, but unfortunately, I do not know how it was done, hence my question. :
I have a form called Timecards Subform, which is based on the Timecard Hours table. In that table (and form) are two fields of interest: Work Code ID and Billing Rate. There is also a Work Code table with two fields, Work Code and Fees. The Work Code table exists for us to list all of our billable work codes and assign a fee (usually hourly) to them. So, for example, there might be an entry called "Excel training" and the Fee is $75. That table would contain all of our work codes and fees
The Timecard Hours table would be used by an employee to list the work performed for a specific client. So, right now, the employee can go to the Work Code ID field, which is a combo box, and choose the appropriate Work Code (which populates from the Work Code field of the Work Code table). However, the employee has to manually look up and enter the Billing Rate in the Timecard Hours table. What I would like is for the Billing Rate field in the Timecard Hours table (or the form, whichever) to lookup the value just entered in the Work Code ID field (which is actually a value from the Work Code field of the Work Code table) and then fill in the appropriate value from the Fees field of the Work Code table. Does that make any sense? I am trying to make it so that the employee just has to pick the right Code from the drop-down combo box, and then the Billing Rate will automatically popluate from the Fees field, so that they just enter the number of hours worked and don't have to worry about knowing the right Billing Rate
I would appreciate any help you can offer. I saw this work in a database at a previous company, but unfortunately, that company is out of business and I do not have any way to access that database. Thanks again for your help in advance
Have a blessed day
Jeff Frank
I have a question about filling in a field's value. I am actually modifying the sample "Time and Billing" database in Access 2003, and I have a question about filling in values in a field based on values in another field. I have seen this done with a macro, but unfortunately, I do not know how it was done, hence my question. :
I have a form called Timecards Subform, which is based on the Timecard Hours table. In that table (and form) are two fields of interest: Work Code ID and Billing Rate. There is also a Work Code table with two fields, Work Code and Fees. The Work Code table exists for us to list all of our billable work codes and assign a fee (usually hourly) to them. So, for example, there might be an entry called "Excel training" and the Fee is $75. That table would contain all of our work codes and fees
The Timecard Hours table would be used by an employee to list the work performed for a specific client. So, right now, the employee can go to the Work Code ID field, which is a combo box, and choose the appropriate Work Code (which populates from the Work Code field of the Work Code table). However, the employee has to manually look up and enter the Billing Rate in the Timecard Hours table. What I would like is for the Billing Rate field in the Timecard Hours table (or the form, whichever) to lookup the value just entered in the Work Code ID field (which is actually a value from the Work Code field of the Work Code table) and then fill in the appropriate value from the Fees field of the Work Code table. Does that make any sense? I am trying to make it so that the employee just has to pick the right Code from the drop-down combo box, and then the Billing Rate will automatically popluate from the Fees field, so that they just enter the number of hours worked and don't have to worry about knowing the right Billing Rate
I would appreciate any help you can offer. I saw this work in a database at a previous company, but unfortunately, that company is out of business and I do not have any way to access that database. Thanks again for your help in advance
Have a blessed day
Jeff Frank