Create a form for orders through which you can make
sales the form needs to include the following
1. Customer ID (preferably chosen from a combo box) 2. Order ID ( invoice number) 3. Pickup date (should choose the current date as the default) 4. Notes (any additional information entered when the sale is made) 5. Information about all the products included in the sale a. Product id b. Product name (should be automatically selected based on the id) c. Product price d. Quantity e. Description 6. Total price (sum of all products costs (quantity*price)) 7. Make the form modal ( opened in maximized mode) 8. The form should open first thing when the database is opened 9. Include three buttons a. Add new record b. Save the record c. Close the form Solution steps 1.Creating the form a. We need to create this form using the form wizard i. Include all the fields from orders table ii. Include products id ,quantity, price from order Details table iii. Include name and description from products table
b. View the form by orders
c. Name the form and click finish 2.Adding a combo box for customer names a. In layout view select design and click on the combo box then click on the form b. A dialogue box opens select the first ( taking values from a table) c. Select the customer table d. Then select ID, First Name, Last name e. Choose define now and relate the combo box to the customer id field on the form f. Click finish NOTE/ whenever an object is added to a form access will ask how you want to relate this object to the form. For example when you insert a combo box to a form it will ask where the selected value should be stored. 3.To make the form default a. Go to file->options->current database b. Select this forms name in the display form field 4.To make the form open in maximized view a. Select the form in design view b. Open the property sheet c. On others tab change modal to yes 5.To calculate total price on the form a. Create a query to find the total price grouped by each ID b. Drag the query into the form c. In the dialogue box relate the query to the form by order id
Mental Math: How to Develop a Mind for Numbers, Rapid Calculations and Creative Math Tricks (Including Special Speed Math for SAT, GMAT and GRE Students)