The other problem I am having is that when it does display it shows a line like this
{itemID = SW934, NewOrder = 5, Description = T-Shirt Maker}
I am not sure how to make it display like "SW934 5 T-Shirt Maker" in the lstDisplay listbox.
Public Class frmAssignment_9
Private Sub btnStock_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStock.Click
Dim QueryStock = From INVENT In _MICROLAND_1_DataSet.Inventory
Join ORDER In _MICROLAND_1_DataSet.Orders
On INVENT.itemID Equals ORDER.itemID
Where INVENT.quantity < ORDER.quantity
Let NewOrder = ORDER.quantity - INVENT.quantity
Select INVENT.itemID, NewOrder, INVENT.description
lstDisplay.DataSource = QueryStock.ToList
End Sub
Private Sub frmAssignment_9_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the '_MICROLAND_1_DataSet.Customers' table. You can move, or remove it, as needed.
Me.CustomersTableAdapter.Fill(Me._MICROLAND_1_DataSet.Customers)
'TODO: This line of code loads data into the '_MICROLAND_1_DataSet.Inventory' table. You can move, or remove it, as needed.
Me.InventoryTableAdapter.Fill(Me._MICROLAND_1_DataSet.Inventory)
'TODO: This line of code loads data into the '_MICROLAND_1_DataSet.Orders' table. You can move, or remove it, as needed.
Me.OrdersTableAdapter.Fill(Me._MICROLAND_1_DataSet.Orders)
End Sub
End Class

New Topic/Question
Reply




MultiQuote







|