jazminecat
Programmer
Hi, I am stuck, perhaps I just have FridayBrain. I have a table that lists all my employees - tblEmployees. I have to keep track of what training they have taken. I have a table TrainingTypes to list the most frequent types of training (i.e. first aid, etc). Not all employees take all training (some are computer users, aothers are manual laborers...).
I want to give my user a form, which will show all the standard training types, with a checkbox next to each to indicate if the employee has taken them
. If the checkbox is checked, I will make the date and and expiration visible. But I also need to be able to have a few slots for her to type in the names of other types of training not in the TrainingTypes Table.
And for some reason, this rather simple problem has me completely stymied. Do I create another table which has an id, the employee id, and the trainingtype id, to hold the yes/no for each and the dates and expiry? and if so, how do I populate a form without having the table populated? I thought of writing a little function to run when the checkbox gets checked, creating a new record in such a table. But...what happens if she checks one, and then realizes she needs to uncheck it. The record will have been created and now needs to be deleted. I can just see the mess that could make...
Have a good weekend, and thanks in advance for your help.
I want to give my user a form, which will show all the standard training types, with a checkbox next to each to indicate if the employee has taken them
. If the checkbox is checked, I will make the date and and expiration visible. But I also need to be able to have a few slots for her to type in the names of other types of training not in the TrainingTypes Table.
And for some reason, this rather simple problem has me completely stymied. Do I create another table which has an id, the employee id, and the trainingtype id, to hold the yes/no for each and the dates and expiry? and if so, how do I populate a form without having the table populated? I thought of writing a little function to run when the checkbox gets checked, creating a new record in such a table. But...what happens if she checks one, and then realizes she needs to uncheck it. The record will have been created and now needs to be deleted. I can just see the mess that could make...
Have a good weekend, and thanks in advance for your help.