Hi All,
I'm running Access 2010, though I'm very familiar with 2007 as well. At my job I've been tasked with creating an Employer Database. The database is supposed to provide the name and address of the employer, as well as accomodate multiple supervisors tied to each employer. I think I've got that part covered. I created an employer table, a supervisor table and a junction table called employersupervisor.
Here comes the tricky part:
I also have to figure out how to track clients and job placements for each supervisor. The way I have it set up is my main form is the employer form, and I have a subform for the supervisor (linked by employer id). My original idea was to put a command button on the supervisor subform and have a clientjob form open, where I'd be able to add new clients and job details for each one such as job title, start date and end date. The client form would not be a subform per se, but I would add some code in the onLoad and onCurrent events to make it act like one.
However, the form is very buggy. It will either refuse to add new records, refuse to autofill the supervisor (even though the SupervisorID field is in both forms), and will sometimes change all client records to the current supervisor. All I basically want is when I click a supervisor, I want to see one client at a time for that supervisor and the job details for that client. I also want to be able to add new clients and new jobs at that point without having to go through a new form. Is there any way to do this? Or do you believe my approach is flawed? I would truly appreciate any advice as I'm definitely stuck. Thank you!
I'm running Access 2010, though I'm very familiar with 2007 as well. At my job I've been tasked with creating an Employer Database. The database is supposed to provide the name and address of the employer, as well as accomodate multiple supervisors tied to each employer. I think I've got that part covered. I created an employer table, a supervisor table and a junction table called employersupervisor.
Here comes the tricky part:
I also have to figure out how to track clients and job placements for each supervisor. The way I have it set up is my main form is the employer form, and I have a subform for the supervisor (linked by employer id). My original idea was to put a command button on the supervisor subform and have a clientjob form open, where I'd be able to add new clients and job details for each one such as job title, start date and end date. The client form would not be a subform per se, but I would add some code in the onLoad and onCurrent events to make it act like one.
However, the form is very buggy. It will either refuse to add new records, refuse to autofill the supervisor (even though the SupervisorID field is in both forms), and will sometimes change all client records to the current supervisor. All I basically want is when I click a supervisor, I want to see one client at a time for that supervisor and the job details for that client. I also want to be able to add new clients and new jobs at that point without having to go through a new form. Is there any way to do this? Or do you believe my approach is flawed? I would truly appreciate any advice as I'm definitely stuck. Thank you!