Ok get the feeling I'm trying to paddle uphill here...
What I was hoping to do (and it does not appear to be working) is to fill a listbox on the fly from an employee's table and then use the "EmpCode" listed in the code below later to properly fill a data field for a submitted meeting table. Unfortunately all I seem to be able to get back from the control is the text values from the listbox and I seem to be losing the DataValueField that I'm adding? Suggestions?
Me.ListBox1.Items.Clear()
For Each row In ds.Tables(0).Rows
lbValues = row("License") + " " + row("Fname") + " " + row("LName")
Me.ListBox1.DataValueField = row("EmpCode")
Me.ListBox1.Items.Add(lbValues)
Next
Thanks guys always appreciate the assistance!
CF
I always makes things much harder than they should be... that way later I can slap myself in the forhead after spending hours and hours on two lines of code and say to myself "DUH!"
What I was hoping to do (and it does not appear to be working) is to fill a listbox on the fly from an employee's table and then use the "EmpCode" listed in the code below later to properly fill a data field for a submitted meeting table. Unfortunately all I seem to be able to get back from the control is the text values from the listbox and I seem to be losing the DataValueField that I'm adding? Suggestions?
Me.ListBox1.Items.Clear()
For Each row In ds.Tables(0).Rows
lbValues = row("License") + " " + row("Fname") + " " + row("LName")
Me.ListBox1.DataValueField = row("EmpCode")
Me.ListBox1.Items.Add(lbValues)
Next
Thanks guys always appreciate the assistance!
CF
I always makes things much harder than they should be... that way later I can slap myself in the forhead after spending hours and hours on two lines of code and say to myself "DUH!"