posted 16 years ago
I have a form that contains several elements populated based on a database query. One such field is a list of employees which is basically the result of a select * sql. The listbox is correctly populated
The issue I'm having is that on a "edit" page I have a query that returns a specific record (lets say joe's record). What I need to do is spin through the list of possible items (Jack, Joe, Mary) and if the value matches the name returned in the second query then make the item selected. Here is how I think it would be done:
1) Populate listbox with all possible items
2) Select a specific transaction and return a name
3) Spin through listbox items and if the item value match the name then mark it selected.
Is this possible to do and if so how?