OCG
07-22-2007, 11:20 AM
Hi,
I am designing a form for users to create project budgets. The relationships between all the tables is a little complex to describe so I have added a PDF copy of a report that shows the relationships.
For the forms, I have a main form for the user to enter the project start and end date, the project director, and the number of years. This is all tied to tblDate and the primary key, BudgetID is an auto number and not shown. The first subform is tied to BudgetID and it has most of the fields from tblEntry. It is setup as a datasheet. It has one other control called cboEmployeeName. (Note the name refers the employee's class name and not their given name which belongs back in tblEntry). The CategoryID is also tied to this selection. This combo box is extremely important because when the user selects the employee name, it determines how their benefits, salary, and inflationary factor will be determined. This is all background.
The problem I have is that, when the user selects a certain employee name, "GRA", (from cboEmployeeName) I need for the form to open up a sub-form to enter tuition remission. This by itself, probably isn't too hard. I imagine that I could code the combo box entry so that it either makes the form visible, or DoCmd.Open, after update. The problem that I forsee is that the users will inevitably change their minds about having a GRA on the project, and while it would be fairly simple to close the subform, I do forsee a problem about how to remove the data for tuition remission. (If it is tied to EntryID, and the EmployeeName is no longer GRA, there is a problem) I need something that will automatically remove the data from the subform for the specific GRA if the user decides to change the EmployeeName of the combo box. As you can see I don't have a tblTuitionRemission setup, because I'm just not quite sure what relationship it needs to have to the other tables. Any help that you can provide would be greatly appreciated.:banghead:
I am designing a form for users to create project budgets. The relationships between all the tables is a little complex to describe so I have added a PDF copy of a report that shows the relationships.
For the forms, I have a main form for the user to enter the project start and end date, the project director, and the number of years. This is all tied to tblDate and the primary key, BudgetID is an auto number and not shown. The first subform is tied to BudgetID and it has most of the fields from tblEntry. It is setup as a datasheet. It has one other control called cboEmployeeName. (Note the name refers the employee's class name and not their given name which belongs back in tblEntry). The CategoryID is also tied to this selection. This combo box is extremely important because when the user selects the employee name, it determines how their benefits, salary, and inflationary factor will be determined. This is all background.
The problem I have is that, when the user selects a certain employee name, "GRA", (from cboEmployeeName) I need for the form to open up a sub-form to enter tuition remission. This by itself, probably isn't too hard. I imagine that I could code the combo box entry so that it either makes the form visible, or DoCmd.Open, after update. The problem that I forsee is that the users will inevitably change their minds about having a GRA on the project, and while it would be fairly simple to close the subform, I do forsee a problem about how to remove the data for tuition remission. (If it is tied to EntryID, and the EmployeeName is no longer GRA, there is a problem) I need something that will automatically remove the data from the subform for the specific GRA if the user decides to change the EmployeeName of the combo box. As you can see I don't have a tblTuitionRemission setup, because I'm just not quite sure what relationship it needs to have to the other tables. Any help that you can provide would be greatly appreciated.:banghead: