I'm putting together a database that records overtime worked. The overtime can come from one of several budgets. I want to show how much has been added to each budget, and how much has been spent from the budget on a monthly basis.
The problem I have is that it may be the case that if no money is added to a budget in a particular month, there is no entry in the table recording additions which I can retreive.
I may have a solution but don't know if it will work, or how to do it. I have a table that stores the details of the budgets. If I set my reports record source to this table I can retreive the names of the various budgets (whether they have anything added or not) by placing a textbox in the detail section with it's control source set to the budget name.
I then plan to place a textbox alongside it and somehow get it to query the table recording additions and subtractions, based on the value of the textbox displaying the budget name. I'm using the SUM function so my query will only return one value.
Is this possible? I've tried setting the contol source of the textbox to an sql statement that will retreive the data I want but I keep getting #NAME? where my retreived data should be.
Any help appreciated
Thanks
Jason
The problem I have is that it may be the case that if no money is added to a budget in a particular month, there is no entry in the table recording additions which I can retreive.
I may have a solution but don't know if it will work, or how to do it. I have a table that stores the details of the budgets. If I set my reports record source to this table I can retreive the names of the various budgets (whether they have anything added or not) by placing a textbox in the detail section with it's control source set to the budget name.
I then plan to place a textbox alongside it and somehow get it to query the table recording additions and subtractions, based on the value of the textbox displaying the budget name. I'm using the SUM function so my query will only return one value.
Is this possible? I've tried setting the contol source of the textbox to an sql statement that will retreive the data I want but I keep getting #NAME? where my retreived data should be.
Any help appreciated
Thanks
Jason