By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,432 Members | 1,528 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,432 IT Pros & Developers. It's quick & easy.

adding xml data to a listbox based upon a selection criteria

P: n/a
VB 2005: Using an xml file as the data source, I need to fill a
listbox with data based upon what was selected in a combobox. In
other words, my data consists of a list of customers in a combobox;
once a particular customer is selected I need to populate a listbox
with data specific to the selected customer. A sample layout of the
xml file:
<SHIPTO_ID>ship to id</SHIPTO_ID>
<SHIPTO_CITY>ship to state</SHIPTO_CITY>

I'm sure this would be easier if <CUSTOMER_NUMBERwere the parent
element rather than <RECORDbut the software that produces the xml
report isn't really modifiable as far as the structure of the xml

So to recap: the form loads, populates the combobox with the customer
number data from each record, the user chooses a particular customer
number, then the program needs to populate a listbox with the ship-to
id data related to that particular customer. There can and will be
multiple records which have the same customer number but different
ship-to id's.

I've got the combobox populating with the customer numbers okay but
I'm stuck trying to figure out the next step.

May 4 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.