Hi
Me again. Tried this and got
Index 1 is not non-negative & below total rows count
Dim i As Integer, strClientCode As String, intClientcode As Integer
Dim selected(lstClient.SelectedIndices.Count - 1) As Integer
lstClient.SelectedIndices.CopyTo(selected, 0)
For i = 0 To...
Hi,
Me again. Tried this as well and get
Cast from type 'DataRowView' to type 'String' is not valid.
&
Cast from type 'DataRowView' to type 'Integer' is not valid
strclientcode = lstClient.Items(lstClient.SelectedIndex)
intClientcode = lstClient.Items(lstClient.SelectedIndex)
Hey
New to VB.NET. Linked listbox to a table in sqlserver. When the user clicks on an item I am trying to pull the valuemember associated with the record in the dataset and assign it a variable so I can use this as criteria in a search. Keep getting error about can't cast DataRowView to an...
I tried the above suggestion and recieved the following message when I initiate the click event.
" You can't reference a property or method for a control unless the control has the focus "
I think the original reason I had put the combobox.text into variables is for this reason. I...
I am trying to filter records based on 2 combo boxes. Using the following code, Access recognizes the Field to search as combo18.text (strField), yet it displays an input box and requests a parameter for the 2nd combo box (combo28.text or strField) and shows the item selected in the 2nd combo...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.