Edit the tbSales table as follows:
5.1.1 Change the field size of the Make field to 70 - NSC Computer Application Technology - Question 5 - 2017 - Paper 1
Question 5
Edit the tbSales table as follows:
5.1.1 Change the field size of the Make field to 70.
5.1.2 Add the 'SUV' option to the drop-down list in the Type field.
5.1.3 Ad... show full transcript
Worked Solution & Example Answer:Edit the tbSales table as follows:
5.1.1 Change the field size of the Make field to 70 - NSC Computer Application Technology - Question 5 - 2017 - Paper 1
Step 1
5.1.1 Change the field size of the Make field to 70.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To change the field size of the Make field to 70, navigate to the tbSales table in your database management system. Locate the Make field in the design view and modify its properties to set the field size to 70 characters.
Step 2
5.1.2 Add the 'SUV' option to the drop-down list in the Type field.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the design view of the tbSales table, find the Type field. Alter its properties to include 'SUV' as a new option in the drop-down list.
Step 3
5.1.3 Add a validation rule to ensure that only values later than or equal to the current date can be entered in the SellDate field.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Select the SellDate field and set a validation rule that restricts entries to dates that are greater than or equal to today’s date. This can be done with a rule like >= Date(). An appropriate error message should also be defined for incorrect entries.
Step 4
5.1.4 Change the data type of the Photo field to a suitable data type.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the tbSales table, locate the Photo field and change its data type to OLE Object or Hyperlink, depending on what suits your needs for storing image links or binary data.
Step 5
5.1.5 Create an input mask on the RegNumber field to ensure that the user inserts a registration number in the following format.
97%
117 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Set an input mask for the RegNumber field to enforce the desired format: Use a mask such as >LLL00<, where L represents letters and 0 represents digits. This ensures that all letters are uppercase, followed by two compulsory letters and at least one alphanumeric character.
Step 6
5.2 Add the Title field from the tbClients table.
97%
121 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Open the qry5_2 query, select the tbClients table, and include the Title field by dragging it into the query design grid.
Step 7
5.2 Sort list alphabetically based on surname and then initials.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Sort the qry5_2 query results by selecting the Surname field first for ascending order, followed by the Initials field.
Step 8
5.3 Add a calculated field called Balance.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the qry5_3 query, create a calculated field named Balance with the formula: [SellingPrice] - ([Deposit] + [Paid]). This will subtract the total paid amount from the selling price.
Step 9
5.3 Format the SellingPrice field to currency in rand.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Modify the properties of the SellingPrice field in qry5_3 to format it as currency and ensure it displays in rand.
Step 10
5.4 Display only vehicles manufactured by Nissan or Ford.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the qry5_4 query based on the tbCars table, set criteria for the Manufacturer field to include only 'Nissan' or 'Ford'. Additionally, apply a filter on the PurchasePrice field to limit results to values less than or equal to R100,000.
Step 11
5.5 Insert the picture 50Id.jpg in the form header.
97%
117 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Open frm5_5 in design view and insert the image '50Id.jpg' into the form header section.
Step 12
5.5 Add the Colour field to the form.
97%
121 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Drag the Colour field from the tbCars table onto the frm5_5 in the design view to display it on the form.
Step 13
5.5 Set the default value of the 'Popular' checkbox.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the properties of the Popular checkbox on frm5_5, set the default value to No/False.
Step 14
5.5 Insert a function in the text box next to the label 'Function_Funksie'.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the text box adjacent to the 'Function_Funksie' label on frm5_5, implement a calculation function to increase the PurchasePrice value by 10%. You can achieve this with the formula: =[PurchasePrice]*1.1.
Step 15
5.6 Change the report orientation to landscape.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
Open rpt5_6 and adjust the page setup settings to change the report orientation from portrait to landscape.
Step 16
5.6 Add a second grouping on the Year field.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In rpt5_6, add a second grouping layer based on the Year field to categorize your report data further.
Step 17
5.6 Determine total value of vehicles per manufacturer.
97%
117 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
In the report design view, create an aggregate function that sums the PurchasePrice for vehicles grouped by Manufacturer.