I have the below code so far. The problem is that the variants are being populated with a number equal to the location in their respective listbox. I want the variant to equal the actual value. I'm not sure if this will have an impact on how the correct code is written but the values in the listboxes do change based on other selections made in the form.
Thank you very much for any help.
Code:
Dim lbRoles As ListBox
Dim lbOrganizations As ListBox
Dim varOrganization As Variant
Dim varRole As Variant
For Each varOrganization In Me.lbOrganizations.ItemsSelected
For Each varRole In Me.lbRoles.ItemsSelected
DoCmd.RunSQL "INSERT INTO ....
Next varRole
Next varOrganization
Thank you very much for any help.