R
Randy
Hi,
I'm trying to figure out some binding navigator code. If I have the
primary field value as selected by the user in a combo box, how can I
instruct the binding navigator to move to that record. Here is what I
have so far:
Dim strSQL As String
strSQL = "SELECT OrderID WHERE OrderID = @OrderID"
Dim cmdSelect As New SqlCommand(strSQL, cn)
cmdSelect.Parameters.AddWithValue("@OrderID, cboOrderID.text)
bnOrders.Move????
I'd like to know what the binding navigator code is to instruct it to
move to the specific record returned by this query. If I can do it by
using the cboOrderID.text value, that would be simplest. If I need to
use the row number from the table "Orders", can somebody please tell
me what the code is to find the row number?
Thanks a lot,
Randy
I'm trying to figure out some binding navigator code. If I have the
primary field value as selected by the user in a combo box, how can I
instruct the binding navigator to move to that record. Here is what I
have so far:
Dim strSQL As String
strSQL = "SELECT OrderID WHERE OrderID = @OrderID"
Dim cmdSelect As New SqlCommand(strSQL, cn)
cmdSelect.Parameters.AddWithValue("@OrderID, cboOrderID.text)
bnOrders.Move????
I'd like to know what the binding navigator code is to instruct it to
move to the specific record returned by this query. If I can do it by
using the cboOrderID.text value, that would be simplest. If I need to
use the row number from the table "Orders", can somebody please tell
me what the code is to find the row number?
Thanks a lot,
Randy