Question : Bind Listbox to Different Table and Have it Show Relationship Data

The kicker is I have to do this without a query because of the distribute package.

I have a table called Groups, Inside this table I created a relationship to a Person Table.

I need my listbox to get data from the groups table (the form is bound to the person table).  Anyway, I need to set the datasource of the list to the groups table and I'm trying to set it up to show the groups, then the people assigned to the groups in a treeview look.

How would I do this?

I've got alot more experience with VB rather than Access so it's rough transitioning.

Sample code would be nice..

Answer : Bind Listbox to Different Table and Have it Show Relationship Data

You'll also find it difficult to show this in any sort of a "treeview" style with a standard Access listbox, unless you format your data in some manner first (i.e you add a Group using the .AddItem method of the Listbox, then you add the Users with a leading vbTab to "indent" them). You can use a treeview in Access, but that carries with it some distribution issues.
Random Solutions  
 
programming4us programming4us