Hello,
I have a listbox which is populated with two fields from a database. For example:
list1.AddItem rs.Fields("ID" & " - " & rs.Fields("Name"
So that the list in the listbox will look like this:
57-John Doe
89-Jane Doe
9447-Joe Smith
Etc....
What I would like to do is then extract ONLY the ID from the above list. So if I selected both John and Jane, I would have 57,89. Does this make sense?
I have tried to loop through the selections, but I get the entire concatenated selection, when really I only want the first part. Any ideas?
Thank you!
I have a listbox which is populated with two fields from a database. For example:
list1.AddItem rs.Fields("ID" & " - " & rs.Fields("Name"
So that the list in the listbox will look like this:
57-John Doe
89-Jane Doe
9447-Joe Smith
Etc....
What I would like to do is then extract ONLY the ID from the above list. So if I selected both John and Jane, I would have 57,89. Does this make sense?
I have tried to loop through the selections, but I get the entire concatenated selection, when really I only want the first part. Any ideas?
Thank you!