Search results for query: *

  1. G

    Retrieving from database based on choice made....

    Yea, but I tried everything and nothing seemed to work...
  2. G

    Retrieving from database based on choice made....

    It took me longer to code, but what I ended up doing is to make array's where values for the price could be placed. That way, the comboboxes selectedindex value is that same as the price in the array (0, 1, 2, 3, 4...etc)
  3. G

    Retrieving from database based on choice made....

    I get htis error: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Cannot create a child list for field Table1. What does it mean by a child list?
  4. G

    Retrieving from database based on choice made....

    okay, I made the change, but the valumember line still gives me trouble: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Could not bind to the new display member. if I comment out the valumember line, it will run...
  5. G

    Retrieving from database based on choice made....

    yes, that is right... with teh code that I had posted above where I populated using the if..ElseIF..end, can I add the price in there (invisible) and when the selected index changes, copy the price to the txtbox? I know it isn't accessing the database, but I think it would theoretically work...
  6. G

    Retrieving from database based on choice made....

    I get htis error: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Cannot create a child list for field menu.
  7. G

    Retrieving from database based on choice made....

    ok, I added this: Dim SelectSQL As String = "Select itemID, name, category, price From menu" cnnMenu.ConnectionString = "Provider=Microsoft.Jet.OleDB.4.0;" & _ "Data Source=menu2.mdb" odaMenu.SelectCommand = New OleDb.OleDbCommand(SelectSQL, cnnMenu)...
  8. G

    Retrieving from database based on choice made....

    I am not sure how to bind it via code, but I am populating the comboboxes like this: Do While MenuReader.Read() ItemName = MenuReader.GetString(0) ItemCategory = MenuReader.GetString(1) If MenuReader.GetString(1) = "Beverage" Then...
  9. G

    Retrieving from database based on choice made....

    Ok, here is what I have so far, I am a little confused by what you mean though. http://www.static-thought.net/TempStuff/WindowsApplication1.zip The program runs, loads the Items into the combo boxes fine. What I need to do is have the user select an item in a combo box, and then have...
  10. G

    Retrieving from database based on choice made....

    Ok, here is my problem. I have a form with 4 comboboxes. the comboboxed are filled with items in 4 categories from a database. What I need to to is that when a user makes a selection from the combobox(the item's selectedindex.changed), I want it to go back to the database and pull the price for...
  11. G

    Listing controls

    Hi! I am trying to use a sub to list controls in a form. The form has controls on it as well as in a groupbox. I am doing this using a sub command I have gotten it to list all the controls in the form as well as the groupbox, but searately. My book says that each control has a controls count...
Back
Top