Did you like how we did? Rate your experience!

Rated 4.5 out of 5 stars by our customers 561

Video instructions and help with filling out and completing When 8850 Form Totaling

Instructions and Help about When 8850 Form Totaling

In this video what we're going to try to do is to create a grand total for the order in this particular restaurant database and if you remember previously we've managed to do a calculation in a subform here and what we're now going to do is to transfer the grand total of these values here for all of the items onto the main form itself now fortunately access doesn't make this very easy in fact we have to do in two steps the first step is to perform the calculation here in the subform and then transfer that value into on to the the main form here there are way too much about it I'll take you through step by step and hopefully we'll end up with this total on the main form so the first thing we're going to do is to close down the whole application and I'm going to go to our order subform and place it in designed it and this is where we're going to calculate the total of all of those items for an order and the way which we do this is to put a textbox here into the form footer and what I'll do first of all is to give this particular textbox a meaningful name by bringing up its properties and I'm going to call it order total like that close down the properties dialog and in this part here where it says unbound is where our formula is going to be and we're going to do formula very similar to doing the spreadsheet by using a sum function to add up all of the prices multiplied by the quantities so here we go equal sign first of all then the sum function and we open a pair of round brackets like that and then we're going to do the main calculation which is to multiply the price which we have to have in square brackets by the quantity which also has to be in square brackets that and then close those brackets off like that now what we can then do is to try to view this and see what that total is and unfortunately access doesn't allow us to view it because in this particular type of display it doesn't show any of the footer information that's fairly easy to do this and and if you really need to see it I'll show you now if not you can always scrub through this bit on the video so the first thing I'm going to do is to to close that down and save that particular one and what we do is to go back into design view for the form for the subform and instead of seeing it in datasheet view I'm going to click on Form view like that and what you can see at the bottom there is in fact we have 12 which if you flick back to the original one you'll find out is is the total for that particular order so that's just prove that it works and so you don't really have to see that I just showed you that that's the way that it's going to go so I'll make sure I go back into datasheet view now okay and now you can see everything that's going on there right so that's that job done and the next thing we need to do is to transfer that value that's order total over onto the main form so if we go to reservations our main form into design view again to have a value we click on that we have a text box so here's our textbook and I'll make it quite long because quite a long formula going to go into into this one here now this is where you have to bear with me because it's quite a long formula and quite a complicated one so just follow the structure of it and I'll try and talk you through the whole thing so here we go again we start with an equal sign and then in square brackets we have to place the name of our subform now that's fairly easy to find because the name of the subform is of course there which is all the subform so it's now in square brackets orders subform that closed the square brackets then as a full stop and then the word form now that always goes in there always has the word form that's followed by an exclamation mark and then it has to be the name of that new field that we added to our subform footer now that if you remember was order total like that that's all the total added to it and as we did once before I'm going to just quickly bring up the properties of this this box and we're going to make it format we need to make it currency because it's going to be the grand total of what's going on in the order so here's currency I can bring that up close that down again just a bit of shrinkage on this one so that can move the whole thing around a little bit and if this one as well as the heading and in fact what I'll do is I'll quickly put the word total in there so it looks a little bit more professional when we do it so hopefully now what we've done and we just spotted a spelling mistake in there and we're going to get rid of that stray either sitting I think I've got that one right now yes and what we can now do is to hit this button up here to view the whole thing and we can see that the grand total for our order has been transferred over onto the main form.

If you believe that this page should be taken down, please follow our DMCA take down process here.