T
Tony K
I have created a form to show data in a datagridview based on a start date
and end date. My query I use is for an Access DB.
Here is the query from my dataset designer:
SELECT [Inventory Transactions].TransactionDate, [Inventory
Transactions].TransactionDescription, [Inventory Transactions].UnitsSold,
Products.ProductIDNumber,
Products.ProductDescription, Suppliers.SupplierName
FROM (([Inventory Transactions] INNER JOIN
Products ON [Inventory Transactions].ProductID =
Products.ProductID) INNER JOIN
Suppliers ON Products.SupplierID =
Suppliers.SupplierID)
WHERE ([Inventory Transactions].TransactionDate >= ?) AND ([Inventory
Transactions].TransactionDate <= ?) AND ([Inventory Transactions].UnitsSold
Here is my subroutine from the form that fills the datagridview:
Private Sub ButtonSearchByDate_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ButtonSearchByDate.Click
Try
Me.UsageByDateTableAdapter.FillByUsageByDate(Me.Inventory_management_databaseDataSet.UsageByDate,
New System.Nullable(Of Date)(CType(DateTimePickerStart.Value, Date)), New
System.Nullable(Of Date)(CType(DateTimePickerEnd.Value, Date)))
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
How/Where do I send these same two parameters to a crystal report?
Thanks in advance,
Tony K
and end date. My query I use is for an Access DB.
Here is the query from my dataset designer:
SELECT [Inventory Transactions].TransactionDate, [Inventory
Transactions].TransactionDescription, [Inventory Transactions].UnitsSold,
Products.ProductIDNumber,
Products.ProductDescription, Suppliers.SupplierName
FROM (([Inventory Transactions] INNER JOIN
Products ON [Inventory Transactions].ProductID =
Products.ProductID) INNER JOIN
Suppliers ON Products.SupplierID =
Suppliers.SupplierID)
WHERE ([Inventory Transactions].TransactionDate >= ?) AND ([Inventory
Transactions].TransactionDate <= ?) AND ([Inventory Transactions].UnitsSold
ORDER BY Suppliers.SupplierName
Here is my subroutine from the form that fills the datagridview:
Private Sub ButtonSearchByDate_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ButtonSearchByDate.Click
Try
Me.UsageByDateTableAdapter.FillByUsageByDate(Me.Inventory_management_databaseDataSet.UsageByDate,
New System.Nullable(Of Date)(CType(DateTimePickerStart.Value, Date)), New
System.Nullable(Of Date)(CType(DateTimePickerEnd.Value, Date)))
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
How/Where do I send these same two parameters to a crystal report?
Thanks in advance,
Tony K