Hi everyone. I’ve run into a situation with my database that I’m not sure how to solve.
First, a little background on what I’m doing: I’ve created a database to electronically handle some employee paperwork, so that my employees don’t have to fill it all out each time they do a job with me. (I work on Film/TV productions, and I do many different jobs each year. The crew members have to fill out the same paperwork every time, and it’s a bit of a pain.) That part of the database is done and works great. I now want to add their timecards to the database, both to help me with the calculations of them and to be able to do them paperlessly. I’ve created the Table for the Timecards, but am now trying to create the Form, and I’ve reached a point where I’m not sure how to do it. I guess I don’t understand how database tables relate to one another well enough, because I can’t seem to figure out how to properly create the combo boxes that I want.
I know it would probably be helpful for you to be able to see my table relationships, so I’ve created a PDF laying it all out. You can find it here:
https://www.dropbox.com/s/7iptj64eoc...ships.pdf?dl=0
Here’s what I’m trying to do on my Timecard form:
- First, I want a combo box that allows the user to specify which Job the timecard is for. (This should be a combination of the job name followed by the company name who is producing the job. I’ve done a combo box that combines the two on one of my other forms, and it works, but here it’s a bit trickier, as I’ll explain below.)
- Next, I want a combo box where I can select which employee the timecard is for, but I only want the combo box to list the employees that are currently working on the particular job that has been selected in the combo box above. Employees are “assigned” to a job on the EmployeesOnJobs table.
- Then, I want certain information about that employee to automatically fill in on certain areas of the form. That information would be pulled from the EmployeesOnJobs Table and the various tables that have relationships with that table.
I have created a query to make this Timecard form with, and I have included the various items from the different Tables that I would need. However, I can’t figure out how to create those first two combo boxes that I mentioned. (I know how to create combo boxes in general, but I don’t know what my Control Source and Row Source should be for these.)
I hope this is clear. It’s definitely getting complicated for me. I'm sure this is due to my limited knowledge of how databases/Access works. I’d really love to try to understand it so I can add this functionality to the database. Anyone able to explain how I would do what I’m wanting to do?