"No value given for one or more required parameters."
This is the error I get on the .Fill line of this code.
[VB]
Select Command
Dim txtSelectCommand As String
txtSelectCommand = "SELECT Customers.CustomerID, Parts.PartID, Parts.Description, " & _
"LineItems.Quanity, LineItems.QuantityComplete, " & _
"LineItems.DueDate FROM Customers, Parts, " & _
"LineItems WHERE LineItems.QuantityComplete < LineItems.Quanity"
Set connection and create DataAdapter and DataSet
Dim dbConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""Manufacturing Manager.mdb""")
Dim daPendingSales As New OleDbDataAdapter(txtSelectCommand, dbConnection)
Dim dsPendingSales As New DataSet("dsPendingSales")
Fill the DataSet
daPendingSales.Fill(dsPendingSales)
Set the grids DataBinding
Me.gridPendingSales.SetDataBinding(dsPendingSales, "ProductOrders")
Me.gridPendingSales.RetrieveStructure(True)
Me.gridPendingSales.Refetch()
Close Connection
dbConnection.Close()
[/VB]
Any idea what is wrong? Im in a hurry to go somewhere right now... be back in an hour or two... Ill explain more then if needed...
later
This is the error I get on the .Fill line of this code.
[VB]
Select Command
Dim txtSelectCommand As String
txtSelectCommand = "SELECT Customers.CustomerID, Parts.PartID, Parts.Description, " & _
"LineItems.Quanity, LineItems.QuantityComplete, " & _
"LineItems.DueDate FROM Customers, Parts, " & _
"LineItems WHERE LineItems.QuantityComplete < LineItems.Quanity"
Set connection and create DataAdapter and DataSet
Dim dbConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""Manufacturing Manager.mdb""")
Dim daPendingSales As New OleDbDataAdapter(txtSelectCommand, dbConnection)
Dim dsPendingSales As New DataSet("dsPendingSales")
Fill the DataSet
daPendingSales.Fill(dsPendingSales)
Set the grids DataBinding
Me.gridPendingSales.SetDataBinding(dsPendingSales, "ProductOrders")
Me.gridPendingSales.RetrieveStructure(True)
Me.gridPendingSales.Refetch()
Close Connection
dbConnection.Close()
[/VB]
Any idea what is wrong? Im in a hurry to go somewhere right now... be back in an hour or two... Ill explain more then if needed...
later