Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms, Reports, and Applications Jerry Post Copyright © 2003.

Similar presentations


Presentation on theme: "1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms, Reports, and Applications Jerry Post Copyright © 2003."— Presentation transcript:

1 1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms, Reports, and Applications Jerry Post Copyright © 2003

2 2 Form Types StyleStyle DescriptionCategory Customer Last Name First Name Phone Address City Ski Board Style Sale CustomerSalesperson ItemIDDescriptionPriceQuantityValue Main Grid Main and Subform

3 3 Customer Main Form Combo box Record navigation Text box Label

4 4 Main Form Wizard Select table Select/transfer fields

5 5 Form Design View Toolbox to add controls Properties to control objects Right click to open control properties Right click to open form properties Switch to design or display view Field List Box

6 6 Data Source Properties Record Source = Customer table Form propertiesControl properties Control Source = CustomerID column

7 7 Adding Command Buttons

8 8 Initial Grid Form

9 9 Grid Form Wizard Datasheet style is simpler than Tabular Tabular style has more design options

10 10 Add a Combo Box Delete the text box Add a combo box

11 11 Combo Box Role SkiBoardStyle StyleDescCategory DownhillSki ProductCategory Board Boots Clothes Electronic Glasses Ski Display Select

12 12 Combo Box Runtime Click the arrow Select the item Chosen value is transferred to form

13 13 Main/Subform by Sale

14 14 Initial Sale Form Need combo box Fix layout and sizing Multiply price by quantityCalculate subtotal

15 15 Initial Sale Form Improvements

16 16 Most of the Sale Form Display the subtotal

17 17 Expression Builder to Copy Subtotal Open the Sale form Select the subform Double click the subtotal control Formula to copy the subtotal value

18 18 Final Sale Form

19 19 Create the Customer Sales Report Select all columns from the Customer, Sale, and SaleItem tables Customer break Sale break SaleItem detail

20 20 Report Summary Options Select this button to calculate subtotals easily

21 21 Summary Options

22 22 Initial Report Customer break Sale break SaleItem detail

23 23 Report Design Customer break Sale break SaleItem detail Value textbox properties

24 24 Final Design Page break Correct total

25 25 Final Report (One Page)

26 26 Customer Totals Without Items SELECT Customer.CustomerID, Customer.LastName, Customer.FirstName, Customer.Phone, Customer.EMail, Sale.SaleID, Sale.SaleDate, Sale.ShipCity, Sale.ShipState, Sum([SalePrice]*[QuantitySold]) AS [Value] FROM (Customer INNER JOIN Sale ON Customer.CustomerID = Sale.CustomerID) INNER JOIN SaleItem ON Sale.SaleID = SaleItem.SaleID GROUP BY Customer.CustomerID, Customer.LastName, Customer.FirstName, Customer.Phone, Customer.EMail, Sale.SaleID, Sale.SaleDate, Sale.ShipCity, Sale.ShipState ORDER BY Customer.LastName, Customer.FirstName;

27 27 Sales Total Design

28 28 Subreport: Sales and Rentals Subreport properties Link main customer report (master) to subreport (child)

29 29 Subreport Display

30 30 Creating a Switchboard Form Start in design view Add command buttons Open forms or reports

31 31 Creating Toolbars and Menus Create a new toolbar

32 32 Toolbars and Menus Drag commands onto the toolbar

33 33 HTML Help Form Help File AllPowder.chm HTML Topic Properties: Help File: AllPowder.chm Help Context ID: 1 1 Topic A 2 Topic B 3 Topic C 4 Topic D 5 Topic E 6 Topic F compile

34 34 HTML Help Files <Object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e"> All Powder Board and Ski Shop Introduction to the All Powder Board and Ski Shop All Powder Board and Ski Shop sells and rents snowboards and skis for all levels of riders and skiers. The Board and Ski Shop Customers Sales

35 35 Topics Map File #define AllPowder100 #define Customers10000 #define Sales20000

36 36 Help Compiler and File

37 37 Help File on Access Form File name Topic number


Download ppt "1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms, Reports, and Applications Jerry Post Copyright © 2003."

Similar presentations


Ads by Google