Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sam225

    pull valuemember from listbox & assign to variable

    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...
  2. sam225

    pull valuemember from listbox & assign to variable

    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)
  3. sam225

    pull valuemember from listbox & assign to variable

    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...
  4. sam225

    Filter via 2 combo boxes, 1 = field, 2 = Search criteria

    I figured it out!! Without trying the variables in place of the combo.text I replied to the above message. Thanks again..
  5. sam225

    Filter via 2 combo boxes, 1 = field, 2 = Search criteria

    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...
  6. sam225

    Filter via 2 combo boxes, 1 = field, 2 = Search criteria

    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...

Part and Inventory Search

Back
Top