Ok this is a weird one. I recently got Windows Vista along with Access 2007. I am making a new database which deals with item sales. The items are listed in a subform each with their own price. Underneath the subform I have a totals text box. I want this to automatically update to show the price total, so as the user changes prices or adds new items it updates as necessary. How I managed to do this before in Access 2003 was to have a form footer in the subform, stick a text box in there with the control source =Sum([Price]). This would automatically total up all the prices. Then I would set the control source of the text box on the main form to =[subItems].[Form].[Controls]("Price"). However in Access 2007, the total in the form footer of the subform doesn't seem to work right, it just displays #Error. If I import a screen from an older database into the new one which has this function on, it works fine until you go and edit it, and then it displays #Error as well.
Does anyone know how the hell to get around this? Do I need to change something to get this to work, or does anyone know any other method, apart from having to set up queries to calculate the totals every time a change is made?
Does anyone know how the hell to get around this? Do I need to change something to get this to work, or does anyone know any other method, apart from having to set up queries to calculate the totals every time a change is made?