Formulas


Open the Sales Form in Design View (see below).

img51.JPG (52962 bytes)

Next we are going to create the formulas for each of the Total fields in the Product section.

Right click on the first Total field and select Properties (Data tab) - Control Source.

img52.JPG (13975 bytes)

Click on the button containing the 3 dots img53.JPG (808 bytes). This will bring you to the Expression Builder.

img54.JPG (25758 bytes)

Delete the contents of the expression window and enter the following expression by clicking on the = button then the field item Product 1 Price then the * button then the Product 1 Quantity.

img55.JPG (26738 bytes)

Once done click on the OK button.

Repeat this step for all the Total fields for each product.

The Subtotal field will need to be set to the sum of all the individual Product Totals (see below).

img56.JPG (28217 bytes)

The GST field will need to be set to the Subtotal field * .07.

The PST field will need to be set to the Subtotal field * .07.

The final Total field will need to be set to the sum of the Subtotal, GST, and PST fields.

When done, close and save the form and re-open it in data entry mode to see the results. All the calculated fields should now display the correct values (see below).

img57.JPG (26670 bytes)

In the next section we will be creating the Report used to print out a hard copy of the invoice for the customer.


Last Updated Jan. 14/00