Hello all!
I'm new and need help lol! I haven't used Access in about 12 years, but have a new role where the person before me made a db. I've re-vamped it and made it more user friendly, but I'm stuck on this one thing and it's making me mental. I imagine it's pretty simple for those with years of experience so I'm hoping if I beg, someone can help
I have a form with the following information on it:
Project Manager Hours
Managing Consultant Hours
Solutions Architect Hours
Lead Consultant Hours
Senior Consultant Hours
Staff Consultant Hours
Total Hours
What I want to do is to have Access automatically enter the number of hours into the "Total Hours" field/control rather than having to manually add it up with a calculator. Someone told me to use a calculated field query so I managed, finally, to build that (and when I did, realized I had to take the "Total Hours" field out of my table b/c it can't reference anything there), but now I have no idea how to get my "Total Hours" field to reference the results of the query.
My friend thinks I may need to run an Event Procedure so that Access knows to run the query every time an entry is made into one of the above roles and then have it run again to put the total in. It's also possible inhe related record, that some roles will have a default of zero (since a contract may not use all roles) so I have to consider that too. Also, I will need the Total Hours number in some reports that are in my db...and I have Access 2007.
I suspect I need code...but that's where I'm at the end of my knowledge!
Anyone? Pretty, pretty, pretty please?
Thank you!!!
Lynne
I'm new and need help lol! I haven't used Access in about 12 years, but have a new role where the person before me made a db. I've re-vamped it and made it more user friendly, but I'm stuck on this one thing and it's making me mental. I imagine it's pretty simple for those with years of experience so I'm hoping if I beg, someone can help
I have a form with the following information on it:
Project Manager Hours
Managing Consultant Hours
Solutions Architect Hours
Lead Consultant Hours
Senior Consultant Hours
Staff Consultant Hours
Total Hours
What I want to do is to have Access automatically enter the number of hours into the "Total Hours" field/control rather than having to manually add it up with a calculator. Someone told me to use a calculated field query so I managed, finally, to build that (and when I did, realized I had to take the "Total Hours" field out of my table b/c it can't reference anything there), but now I have no idea how to get my "Total Hours" field to reference the results of the query.
My friend thinks I may need to run an Event Procedure so that Access knows to run the query every time an entry is made into one of the above roles and then have it run again to put the total in. It's also possible inhe related record, that some roles will have a default of zero (since a contract may not use all roles) so I have to consider that too. Also, I will need the Total Hours number in some reports that are in my db...and I have Access 2007.
I suspect I need code...but that's where I'm at the end of my knowledge!
Anyone? Pretty, pretty, pretty please?
Thank you!!!
Lynne