Hello,
I have built a rather large relational database for my job in which I enter data concerning my subordinates. Each record brings up a specific person's information. On the main form I use for this, I have a command button which brings up another form in which to enter data into a subtable specific for that individual. However, not everyone will require data on the subform. The problem I want to solve is this: From the main form, the only way to know if there is data on the subform is to click it and look. What I would like is for the text on the command button to be green if there is no data on the subform, and red if there is. That way, I will know by looking at the main form if data exists without having to actually open it up each time. I have some VBA experience and have gotten only partial success with this, but nothing that will change as the subform is populated. Your help with this will be greatly appreciated. Another problem I need help with is this - the tables on the subform for each person requires a value in a field. How do I get Access to add up all of the values and display the total in a label on the form? So far, It will only display the value for only the record displayed. Again, your help with this will be GREATLY appreciated. Thanks!
I have built a rather large relational database for my job in which I enter data concerning my subordinates. Each record brings up a specific person's information. On the main form I use for this, I have a command button which brings up another form in which to enter data into a subtable specific for that individual. However, not everyone will require data on the subform. The problem I want to solve is this: From the main form, the only way to know if there is data on the subform is to click it and look. What I would like is for the text on the command button to be green if there is no data on the subform, and red if there is. That way, I will know by looking at the main form if data exists without having to actually open it up each time. I have some VBA experience and have gotten only partial success with this, but nothing that will change as the subform is populated. Your help with this will be greatly appreciated. Another problem I need help with is this - the tables on the subform for each person requires a value in a field. How do I get Access to add up all of the values and display the total in a label on the form? So far, It will only display the value for only the record displayed. Again, your help with this will be GREATLY appreciated. Thanks!