Selecting from list boxes and combo 
Author Message
 Selecting from list boxes and combo

I have two questions from the same form.  

I have a form that contains a Combo box that is populated with a coded(AddItem) list.
It also has a list box that is populated with a dynaset from an Oracle select statement.

1.  Everytime I select a different item from the combo list, I would like to have
    the list box display the results of a different select statement.

Example:  combo box = complete    list box = users with access to complete data
          combo box = general     list box = users with access to only general data

Any ideas?

2.   The List box displays Username, Create Date for users.  I would like to select
     an item from the list box and use the username for other things.

how can I get the username?

Thanks in advance.



Fri, 10 Apr 1998 03:00:00 GMT  
 Selecting from list boxes and combo

: 1.  Everytime I select a different item from the combo list, I would like to have
:     the list box display the results of a different select statement.

: Example:  combo box = complete    list box = users with access to complete data
:           combo box = general     list box = users with access to only general data

On the click event of the combo box you build a SQL statement.

  Select complete from table

This SQL statement is used to create a snapshot or a dynaset of the table
in the db.  Using a loop you can then add the items from the statement
into the listbox, and the refresh the listbox.  You'll also need to clear
out the lisbox before you re-populate it otherwise the conetnts will
begin to grow.

: 2.   The List box displays Username, Create Date for users.  I would like to select
:      an item from the list box and use the username for other things.

: how can I get the username?

Is the Username in the listbox or the create date?  If it is the user
name you can use the currently selected item in another SQL statement or
whatever you want to do.

--
---------------------------------------------------------------------


|-------------------------------------------------------------------|
| The opinions expressed are mine, all mine........                 |
|-------------------------------------------------------------------|
| Time is nature's way of keeping everything from happening at once |
---------------------------------------------------------------------



Fri, 17 Apr 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Rebuild select list for combo/list box

2. Updating a combo box list W/limit to list selected

3. Fill Combo List using Criteria selected in another Combo List

4. Fill Combo List using Criteria selected in another Combo List

5. selecting records for 2nd combo box dependant on first combo box

6. Displaying selected list item in Style #2 combo box

7. Color of a selected item in a combo/list box

8. Color of a selected item in a combo/list box

9. How to list macro names in a combo box or a list box

10. dialog box with list box or combo box

11. Limiting Access to Text Boxes, List Boxes and Combo Boxes

12. Cetting A Report To Select Records Based Upon A Value Selected In A Combo Box

 

 
Powered by phpBB® Forum Software