|
Database Application: Fun Department Store |
|
|
As its name indicates, a table adapter is an object that
gives access to a database's table. This is a review of the automatically generated
data set and its data tables created by the Data Source Configuration
Wizard of Microsoft Visual Studio 2008. To illustrate the
features, we create an application for a department store.
|
|
The clothes (manufacturers, names, sizes,
categories, and prices used in the database of
this application were retrieved/taken from the Lord & Taylor and the Ann Taylor
web sites (http://www.lordandtaylor.com and
http://www.anntaylor.com) (This
just in case you want to know; this is not an advertisement) during the month
of November 2009 (most, if not all, of the items
without a manufacturer are from Ann Taylor). |
Practical Learning: Introducing Data Sets
|
|
- Open the FunDS1.htm file
- Select its content and copy it
- Start Microsoft SQL Server and connect to the server
- Create a Query window and paste the code in it
- To create the database, press F5
- Start Microsoft Visual Studio and create a Windows Application named
FunDepartmentStore1
- In the Solution Explorer, right-click Form1.cs and click Rename
- Type Central.vb and press Enter
-
From the Components section of the Toolbox, click Timer and click the form
- Design the form as follows:
|
Control |
Text |
Name |
Button |
Process a Customer Order |
btnProcessOrder |
Button |
Create a New Store Item |
btnCreateStoreItem |
Button |
View Current Inventory |
btnCurrentInventory |
Button |
Manage a Store Items |
btnManageStoreItem |
Button |
Close |
btnClose |
|
- To add a new form, on the menu, click Project -> Add Windows Form...
-
Set the Name to ShoppingSession and click Add
-
Design the form as follows:
|
Control |
Text |
Name |
Other Properties |
Form |
Fun Department Store - Shopping Session |
|
ShowInTaskbar: False
StartPosition: CenterScreen |
Panel |
|
|
BorderStyle: Fixed3D |
Label |
Item # |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
Item Name/Description |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
Size |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
Unit Price |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
TextBox |
|
txtItemNumber |
Font: Times New Roman, 20.25pt
TextAlign: Center |
TextBox |
|
txtItemName |
Font: Times New Roman, 20.25pt |
TextBox |
|
txtItemSize |
Font: Times New Roman, 20.25pt |
TextBox |
|
txtUnitPrice |
Font: Times New Roman, 20.25pt
TextAlign: Right |
ListView |
|
lvwShoppingSession |
Anchor: Top, Bottom, Left, Right
Font: Times New Roman, 20.25pt
FullRowSelect: True
GridLines: True
View: Details |
|
Columns |
(Name) |
Text |
TextAlign |
Width |
colItemNumber |
Item # |
|
100 |
colItemName |
Item Name/Description |
|
446 |
colItemSize |
Size |
Center |
100 |
colUnitPrice |
Unit Price |
Right |
124 |
|
Label |
Type of Payment: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
ComboBox |
|
cbxCurrencyType |
Font: Times New Roman, 20.25pt, style=Bold
Items: Cash
Check
Visa
Master Card
Store Card |
Label |
Order Total: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
TextBox |
|
txtOrderTotal |
Anchor: Bottom, Right
Font: Times New Roman, 20.25pt, style=Bold
Text: 0.00
TextAlign: Right |
Label |
Order Time: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
Order Date: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
Amount Tended: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
TextBox |
|
txtAmountTended |
Anchor: Bottom, Right
Font: Times New Roman, 20.25pt, style=Bold
Text: 0.00
TextAlign: Right |
Button |
|
btnSubmitOrder |
Anchor: Bottom, Left, Right
Font: Times New Roman, 20.25pt, style=Bold |
Label |
Change: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
TextBox |
|
txtChange |
Anchor: Bottom, Right
Font: Times New Roman, 20.25pt, style=Bold
Text: 0.00
TextAlign: Right |
Label |
Receipt #: |
|
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
TextBox |
|
txtReceiptNumber |
Anchor: Bottom, Right
Font: Times New Roman, 20.25pt, style=Bold |
Button |
|
btnCancelOrder |
Anchor: Bottom, Left, Right
Font: Times New Roman, 20.25pt, style=Bold |
Panel |
|
|
BorderStyle: Fixed3D |
Label |
|
lblDate |
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Label |
|
lblTime |
Font: Times New Roman, 20.25pt, style=Bold
ForeColor: Blue |
Button |
|
btnClose |
Anchor: Bottom, Left, Right
Font: Times New Roman, 20.25pt, style=Bold |
Timer |
|
tmrDateTime |
Enabled: True |
|
- Double-click the timer
- Implement its event as follows:
Private Sub tmrDateTime_Tick(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles tmrDateTime.Tick
lblDate.Text = DateTime.Today.ToLongDateString()
lblTime.Text = DateTime.Now.ToLongTimeString()
End Sub
- Save All
Practical Learning:
Generating a Table Adapter
|
|
- On the main menu, click Data -> Add New Data Source...
- On the first page of the wizard, make sure Database is selected and
click Next
- In the second page of the wizard, click New Connection...
- In the Server Name combo box, select the server or type (local)
- In the Select or Enter a Database Name combo box, select
FunDS1
- Click Test Connection
- Click OK twice
- On the Data Source Configuration Wizard, make sure the new connection is
selected
Click the + button of Connection String
- Click Next
- Change the connection string to CstrFunDS
and click Next
- Click the check box of Tables (to select all tables)
- Change the name of the data set to DsFunDS
- Click Finish
- In the Solution Explorer, double-click dsFunDS.Designer.cs to
open and view the file
- Press Ctrl + F5 to execute
- After viewing the main form, close it
- Display the ShoppingSession form
- In the top section of the Toolbox, click dsFunDS and click the
form
- In the top section of the Toolbox, click CustomersOrdersTableAdapter and
click the form
- In the Properties window, change its name to TaCustomersOrders
- In the top section of the Toolbox, click ReceiptsSummariesTableAdapter
and click the form
- In the Properties window, change its name to TaReceiptsSummaries
- In the top section of the Toolbox, click StoreItemsTableAdapter and
click the form
- In the Properties window, change its name to TaStoreItems
- Save the form
Practical Learning:
Getting the Records
|
|
- To add another form, on the main menu, click Project -> Add Windows Form
- Set the Name to CurrentStoreInventory and click Add
- In the top section of the Toolbox, click DsFunDS and click the
form
- In the top section of the Toolbox, click StoreItemsTableAdapter and
click the form
- In the Properties window, change its name to TaStoreItems
- Design the form as follows:
Control |
Text |
Name |
Other Properties |
ListView |
|
lvwStoreItems |
FullRowSelect: True
GridLines: True
View: Details |
|
Columns |
(Name) |
Text |
TextAlign |
Width |
colItemNumber |
Item # |
|
100 |
colManufacturer |
Manufacturer |
|
80 |
colCategory |
Category |
|
|
colSCategoryub |
Sub-Category |
|
80 |
colItemName |
Item Name/Description |
|
200 |
colItemSize |
Size |
Center |
100 |
colUnitPrice |
Unit Price |
Right |
|
|
Button |
Show Store Items Inventory |
btnShowCurrentInventory |
|
- Double-click the Show Store Items Inventory button and implement its Click event as follows:
''' <summary>
''' When the Show Current Inventory button is clicked, the form shows
''' a list of the items that have been added to the Store Items table
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub btnShowCurrentInventory_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnShowCurrentInventory.Click
Dim i As Integer
For i = 0 To TaStoreItems.GetData().Rows.Count - 1
Dim RcdStoreItem As DataRow = TaStoreItems.GetData().Rows(i)
Dim LviStoreItem As ListViewItem = New ListViewItem(CStr((i + 1)))
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("ItemNumber")))
If IsDBNull(RcdStoreItem("Manufacturer")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("Manufacturer")))
End If
If IsDBNull(RcdStoreItem("Category")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("Category")))
End If
If IsDBNull(RcdStoreItem("SubCategory")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("SubCategory")))
End If
If IsDBNull(RcdStoreItem("ItemName")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("ItemName")))
End If
If IsDBNull(RcdStoreItem("ItemSize")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("ItemSize")))
End If
If IsDBNull(RcdStoreItem("UnitPrice")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CDbl(FormatNumber(RcdStoreItem("UnitPrice"))))
End If
If IsDBNull(RcdStoreItem("SaleStatus")) Then
LviStoreItem.SubItems.Add("")
Else
LviStoreItem.SubItems.Add(CStr(RcdStoreItem("SaleStatus")))
End If
lvwStoreItems.Items.Add(LviStoreItem)
Next
End Sub
- Save all
- Show the Central form
- Double-click the View Current Inventory
- Implement its Click event as follows:
Private Sub btnCurrentInventory_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnCurrentInventory.Click
Dim csi As CurrentStoreInventory = New CurrentStoreInventory()
csi.ShowDialog()
End Sub
- Press Ctrl + F5 to execute
- Open the Current Inventory form
- Click the Show Store Items Inventory button
- Close the forms and return to your programming environment
Practical Learning:
Locating a Record Based on a Column Name
|
|
- In the Solution Explorer, right-click the ShoppingSession.vb and click
View Code
- Import the System.Data.SqlClient namespace and declare two global
variables as follows:
Imports System.Data.SqlClient
Public Class ShoppingSession
' The ReceiptNumber variable will represent the receipt number
Dim ReceiptNumber As Integer
' This variable will represent the total value of the shopping
Dim TotalOrder As Double
. . .
End Class
- In the Class Name combo box, select the btnCancelOrder
- In the Method Name combo box, select Click
- Implement its event as follows:
Private Sub btnCancelOrder_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnCancelOrder.Click
REM First reset the form
TotalOrder = 0.0
txtItemNumber.Text = ""
txtItemName.Text = ""
txtUnitPrice.Text = "0.00"
lvwShoppingSession.Items.Clear()
txtOrderTotal.Text = "0.00"
txtAmountTended.Text = "0.00"
txtChange.Text = "0.00"
If TaCustomersOrders.GetData().Rows.Count > 0 Then
For Each RcdCustomerOrder As DataRow In TaCustomersOrders.GetData().Rows
ReceiptNumber = CInt(CStr(RcdCustomerOrder("ReceiptNumber"))) + 1
Next
End If
txtReceiptNumber.Text = CStr(ReceiptNumber)
End Sub
- In the Class Name combo box, select (ShoppingSession Events)
- In the Method Name combo box, select Load
- Implement its event as follows:
Private Sub ShoppingSession_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles Me.Load
TotalOrder = 0.0
ReceiptNumber = 100000
btnCancelOrder_Click(sender, e)
End Sub
- Save all
Practical Learning:
Finding a Record
|
|
- The ShoppingSession form (the ShoppingSession.vb (Design) tab) should be
displaying.
In the Class name combo box, select txtItemNumber
- In the Method Name combo box, select Leave
- Implement the event as follows:
Private Sub txtItemNumber_Leave(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles txtItemNumber.Leave
Dim unitPrice As Double = 0.0
If txtItemNumber.Text.Equals("") Then
Exit Sub
End If
Try
Dim rcdStoreItem As DataRow = TaStoreItems.GetData().Rows.Find(txtItemNumber.Text)
If IsDBNull(rcdStoreItem("ItemName")) Then
txtItemName.Text = ""
Else
txtItemName.Text = CStr(rcdStoreItem("ItemName"))
End If
If IsDBNull(rcdStoreItem("ItemSize")) Then
txtItemSize.Text = ""
Else
txtItemSize.Text = CStr(rcdStoreItem("ItemSize"))
End If
If IsDBNull(rcdStoreItem("UnitPrice")) Then
txtUnitPrice.Text = "0.00"
Else
unitPrice = CDbl(CStr(rcdStoreItem("UnitPrice")))
TotalOrder = TotalOrder + unitPrice
txtUnitPrice.Text = CStr(unitPrice)
End If
Dim LviStoreItem As ListViewItem = New ListViewItem(txtItemNumber.Text)
LviStoreItem.SubItems.Add(txtItemName.Text)
LviStoreItem.SubItems.Add(txtItemSize.Text)
LviStoreItem.SubItems.Add(FormatNumber(unitPrice))
lvwShoppingSession.Items.Add(LviStoreItem)
txtOrderTotal.Text = FormatNumber(TotalOrder)
txtItemNumber.Text = ""
txtItemName.Text = ""
txtItemSize.Text = ""
txtUnitPrice.Text = "0.00"
txtItemNumber.Focus()
Catch nre As NullReferenceException
MsgBox("There is no store item with that number")
Catch ioore As IndexOutOfRangeException
MsgBox("There is no store item with that number")
End Try
End Sub
- In the Class Name combo box, select txtAmountTended
- In the Method Name combo box, select Leave
- Implement the event as follows:
Private Sub txtAmountTended_Leave(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles txtAmountTended.Leave
Dim totalOrder As Double
Dim amountTended As Double
Dim change As Double
Try
totalOrder = CDbl(txtOrderTotal.Text)
amountTended = CDbl(txtAmountTended.Text)
change = amountTended - totalOrder
txtChange.Text = FormatNumber(change)
btnSubmitOrder.Focus()
Catch fe As FormatException
MsgBox("Invalid Value!")
End Try
End Sub
- Return to the Central form
- Double-click the Process Customer Order
- Implement its Click event as follows:
Private Sub btnProcessOrder_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnProcessOrder.Click
Dim shop As ShoppingSession = New ShoppingSession()
shop.ShowDialog()
End Sub
- To create a new form, on the main menu, click Project -> Add Windows
Form...
- Set the Name to ManageStoreItem and click Add
- In the top section of the Toolbox, click dsFunDS and click the
form
- In the top section of the Toolbox, click StoreItemsTableAdapter and
click the form
- In the Properties window, change its name to TaStoreItems
- Design the form as follows:
|
Control |
Text |
Name |
Other Properties |
Label |
Item #: |
|
|
TextBox |
|
btnItemNumber |
|
Button |
Find |
btnFind |
|
Label |
Manufacturer |
|
|
TextBox |
|
Manufacturer |
|
Label |
Category: |
|
|
ComboBox |
|
cbxCategories |
Items: Men
Girls
Boys
Babies
Women
Other |
Label |
Sub-Category: |
|
|
ComboBox |
|
cbxSubCategories |
Items:
Skirts
Pants
Shirts
Shoes
Beauty
Dresses
Clothing
Sweater
Watches
Handbags
Miscellaneous |
Label |
Item Name: |
|
|
TextBox |
|
btnItemName |
|
Label |
Size: |
|
|
TextBox |
|
btnItemSize |
|
Label |
Unit Price: |
|
|
TextBox |
|
btnUnitPrice |
Text: 0.00
TextAlign: Right |
Label |
Sale Status: |
|
|
ComboBox |
|
cbxSaleStatus |
Items:
Available
Sold
Processing
Other |
Button |
Reset |
btnReset |
|
Button |
Submit Changes |
btnSubmitChanges |
|
Button |
Delete this Item |
btnDeleteStoreItem |
|
Button |
Close |
btnClose |
|
|
- Double-click the Reset button
- Implement the event as follows:
Private Sub btnReset_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnReset.Click
txtItemNumber.Text = ""
txtManufacturer.Text = ""
cbxCategories.Text = "Women"
txtItemName.Text = ""
txtItemSize.Text = ""
txtUnitPrice.Text = "0.00"
txtManufacturer.Focus()
End Sub
- In the Class Name combo box, select btnFind
- In the Method Name combo box, select Click
- Implement its event as follows:
Private Sub btnFind_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnFind.Click
Dim unitPrice As Double = 0.0
If txtItemNumber.Text = "" Then
Exit Sub
End If
Try
Dim rcdStoreItem As DataRow = _
TaStoreItems.GetData().Rows.Find(txtItemNumber.Text)
If IsDBNull(rcdStoreItem("ItemName")) Then
txtItemName.Text = ""
Else
txtItemName.Text = CStr(rcdStoreItem("ItemName"))
End If
If IsDBNull(rcdStoreItem("Manufacturer")) Then
txtManufacturer.Text = ""
Else
txtManufacturer.Text = CStr(rcdStoreItem("Manufacturer"))
End If
If IsDBNull(rcdStoreItem("Category")) Then
cbxCategories.Text = ""
Else
cbxCategories.Text = CStr(rcdStoreItem("Category"))
End If
If IsDBNull(rcdStoreItem("SubCategory")) Then
cbxSubCategories.Text = ""
Else
cbxSubCategories.Text = CStr(rcdStoreItem("SubCategory"))
End If
If IsDBNull(rcdStoreItem("itemName")) Then
txtItemName.Text = ""
Else
txtItemName.Text = CStr(rcdStoreItem("itemName"))
End If
If IsDBNull(rcdStoreItem("ItemSize")) Then
txtItemSize.Text = ""
Else
txtItemSize.Text = CStr(rcdStoreItem("ItemSize"))
End If
If IsDBNull(rcdStoreItem("UnitPrice")) Then
txtUnitPrice.Text = "0.00"
Else
unitPrice = CDbl(CStr(rcdStoreItem("UnitPrice")))
txtUnitPrice.Text = CStr(unitPrice)
End If
If IsDBNull(rcdStoreItem("SaleStatus")) Then
cbxSaleStatus.Text = ""
Else
cbxSaleStatus.Text = CStr(rcdStoreItem("SaleStatus"))
End If
Catch nre As NullReferenceException
MsgBox("There is no store item with that number")
btnReset_Click(sender, e)
Catch ioore As IndexOutOfRangeException
MsgBox("There is no store item with that number")
btnReset_Click(sender, e)
End Try
End Sub
- Display the Central form
- Double-click the Manage Store Item
- Implement the event as follows:
Private Sub btnManageStoreItem_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnManageStoreItem.Click
Dim msi As ManageStoreItem = New ManageStoreItem()
msi.ShowDialog()
End Sub
- Press Ctrl + F5 to execute
- Display the Manage Store Item form
- In the Item # text box, enter 294725 and click Find
- Enter 557504 and click Find
- Close the forms and return to your programming environment
- Save all
Practical Learning:
Adding and/or Updating a Record
|
|
- Display the Shopping Session form
- Double-click the Submit Current Order button
- Implement its event as
follows:
Private Sub btnSubmitOrder_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnSubmitOrder.Click
Dim i As Integer
If lvwShoppingSession.Items.Count = 0 Then
MsgBox("There is no record to create.")
Exit Sub
End If
REM Add the list of items to the CustomersOrders table
Try
For i = 0 To lvwShoppingSession.Items.Count - 1
TaCustomersOrders.Insert(CStr(ReceiptNumber), _
lblDate.Text, _
lblTime.Text, _
lvwShoppingSession.Items(i).Text, _
lvwShoppingSession.Items(i).SubItems(1).Text, _
lvwShoppingSession.Items(i).SubItems(2).Text, _
CDec(lvwShoppingSession.Items(i).SubItems(3).Text))
Dim RcdStoreItem As DataRow = _
TaStoreItems.GetData().Rows.Find(lvwShoppingSession.Items(i).Text)
RcdStoreItem("SaleStatus") = "Sold"
TaStoreItems.Update(RcdStoreItem)
Next
REM Let the user know
MsgBox("The customer order has been saved.")
Catch ioore As IndexOutOfRangeException
MsgBox("There is no store item with that number")
End Try
REM Create a record in the ReceiptSummaries table
Try
TaReceiptsSummaries.Insert(txtReceiptNumber.Text, _
lblDate.Text, _
lblTime.Text, _
CDec(txtOrderTotal.Text), _
cbxCurrencyType.Text, _
CDec(txtAmountTended.Text), _
CDec(txtChange.Text))
REM Receipt the form
btnCancelOrder_Click(sender, e)
Catch ioore As IndexOutOfRangeException
MsgBox("There is no store item with that number")
End Try
End Sub
- Press Ctrl + F5 to execute the application
- Click Process a Customer Order
- Create a customer order that uses
- Change the Amount Tended to 500 and press Tab
- Click Submit Current Order
- Create another customer order that uses
Item #: |
927940 |
Item #: |
790064 |
- Change the Amount Tended to 300 and press Tab
- Click Submit Current Order
- Create another customer order that uses
Item #: |
290030 |
Item #: |
790402 |
Item #: |
729741 |
Item #: |
297030 |
- Change the Amount Tended to 300 and press Tab
- Click Submit Current Order
- Create another customer order that uses
- Change the Amount Tended to 20 and press Tab
- Click Submit Current Order
- Close the forms and return to your programming environment
- Display the Manage Store Item form
- Double-click the Submit Changes button
- Implement its Click event as follows:
Private Sub btnSubmitChanges_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnSubmitChanges.Click
If txtItemNumber.Text.Length = 0 Then
MsgBox("You must provide a (unique) item number.")
Exit Sub
End If
If txtItemName.Text.Length = 0 Then
MsgBox("You must provide a name for the item.")
Exit Sub
End If
If txtUnitPrice.Text.Length = 0 Then
MsgBox("You must provide a price for the item.")
Exit Sub
End If
Try
Dim rcdStoreItem As DataRow = _
TaStoreItems.GetData().Rows.Find(txtItemNumber.Text)
If txtManufacturer.Text.Length <> 0 Then
rcdStoreItem("Manufacturer") = txtManufacturer.Text
End If
If cbxCategories.Text.Length <> 0 Then
rcdStoreItem("Category") = cbxCategories.Text
End If
If cbxSubCategories.Text.Length <> 0 Then
rcdStoreItem("SubCategory") = cbxSubCategories.Text
End If
rcdStoreItem("ItemName") = txtItemName.Text
If txtItemSize.Text.Length <> 0 Then
rcdStoreItem("ItemSize") = txtItemSize.Text
End If
rcdStoreItem("UnitPrice") = CStr(txtUnitPrice.Text)
TaStoreItems.Update(rcdStoreItem)
REM Let the user know
MsgBox("The item has been updated")
btnReset_Click(sender, e)
Catch ioore As IndexOutOfRangeException
MsgBox("There is no store item with that number")
End Try
End Sub
- Press Ctrl + F5 to execute the application
- Click the Manage a Store Item button
- Item the item number, enter 582604 and click Find
- If the record is found, change the values as follows:
|
Manufacturer |
Delete |
|
Item Name |
Sleeveless Sweater Dress |
Size |
L |
Unit Price |
125 |
Sale Status |
Available |
- Click Submit Changes
- In the item number, enter 770240 and click Find
- If the record is found, change the values as follows:
Manufacturer |
Caparros |
Sub Category |
Shoes |
Item Name |
Peep-Toe Silk Stiletto Sandals |
Size |
7.5 |
Unit Price |
65.00 |
Sale Status |
Available |
- Click Submit Changes
- Close the forms and return to your programming environment
|
|