Answer To: Microsoft Word - DTS L5 Databases and SQL Assessment Brief BPP Coursework Cover Sheet Please use the...
Amar Kumar answered on Aug 29 2022
List of allergies supplied by the user
This strategy creates RTF code with the allergens featured subsequent to tolerating the fixing list and the allergen list in two factors. The Highlight determination will design all terms from the Allergens that match in the fixings.
Syntax:
FormatAllergens(Ingredients,Allergens,Highlight)
Parameter
Description
Ingredients
The CSV fixing list.
Allergens
The rundown of sensitivities in CSV.
Highlight
The CSV list of format changes you wish to make for the allergy. You can use "bold," "italic," "underline," "caps," the colour of the text, or the colour of the backdrop. The colours are expressed using the RGB hexadecimal notation; for example, red is "#FF0000." Just enter the colour code for the text; for the background, add "bg:" before the colour code, for example, "bg:#FF0000".
This variable depends on choices. At the point when a worth is determined that is unfilled (""), strong designing is utilized.
Example
FormatAllergens("wheat flour,salt,veg fat,hazelnuts","wheat,hazelnuts","bold,italic")
FormatAllergens(Ingredients,"wheat,hazelnuts","bold,italic")
A Microsoft Excel worksheet with allergens
The Microsoft Excel bookkeeping sheet's region and fixing list are both recognized by this ability. The program makes RTF code with the allergens put aside ensuing to examining the allergens from the estimation sheet. The Ingredients estimation sheet's matching words for all terms are coordinated by the Highlight measures.
Syntax:
FormatAllergensFromExcel(Ingredients,ExcelFile,Spreadsheet,Column,Highlight)
Parameter
Description
Ingredients
the parts CSV list.
Excel file
a rundown of the allergens in a Microsoft Excel record, along with its whole area and filename.
Spreadsheet
the title of the bookkeeping sheet that has the sensitivities list.
Field
The name of the field (section) where the allergens are recorded.
The section file number conveying the rundown of allergens can likewise be given. You should enter "1" for segment A, "2" for section B, and so on.
Highlight
The CSV list of format changes you wish to make for the allergy. You can use "bold," "italic," "underline," "caps," the colour of the text, or the colour of the backdrop. The colours are expressed using the RGB hexadecimal notation; for example, red is "#FF0000." Just enter the colour code for the text; for the background, add "bg:" before the colour code, for example, "bg:#FF0000".
This is a choice-based variable. Bold formatting is applied if an empty value ("") is given.
allergens from a database in Microsoft Access
The Microsoft Access information base's area and the rundown of parts are both acknowledged by this capability. The technique produces a RTF code with the allergens featured subsequent to perusing them from the table. The Highlight determination designs all terms from the data set table that match in the Ingredients.
Syntax:
FormatAllergensFromAccess(ingredients,AccessDb,table,field,highlight)
Parameter
Description
ingredients
the parts CSV list.
AccessDb
the entire filename and area to the sensitivities' data set in Microsoft Access.
table
the title of the table that rundowns the allergens
field
The name of the field (section) where the allergens are recorded. The segment record number conveying the rundown of allergens can likewise be given. You should enter "1" for Field 1, "2" for Field 2, and so on.
highlight
The CSV list of format changes you wish to make for the allergy. You can use "bold," "italic," "underline," "caps," the colour of the text, or the colour of the backdrop. The colours are expressed using the RGB hexadecimal notation; for example, red is "#FF0000." Just enter the colour code for the text; for the background, add "bg:" before the colour code, for example, "bg:#FF0000".
This is a choice-based variable. Bold formatting is applied if an empty value ("") is given.
Microsoft SQL Database allergens
The rundown of parts and the area of the Microsoft SQL Server data set are both acknowledged by this capability. The strategy produces a RTF code with the allergens featured in the wake of perusing them from the table. The Highlight particular configurations all terms from the data set table that match in the Ingredients.
Syntax:
FormatAllergensFromMSSQL(ingredients,sqlserver,dbusername,dbpassword, dbname,table,field,highlight
Parameter
Description
ingredients
the parts CSV list.
sqlserver
the entire way and filename to the allergens' information base record on Microsoft SQL Server.
dbusername
secret word to get to the data set.
dbpassword
Access secret phrase for the information base.
dbname
the name of the data set that houses the allergens list.
table
the title of the table that rundowns the allergens
field
The name of the field (section) where the allergens are recorded.
highlight
The CSV rundown of organization transforms you wish to make for the sensitivity. You can utilize "strong," "italic," "underline," "covers," the shade of the text, or the shade of the scenery. The tones are communicated utilizing the RGB hexadecimal...