
02-01-2004, 12:20 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: The Netherlands
Posts: 334
|
|
|
Your relation should be religionID.
Do Until objRs.EOF
Me.lstReligion.AddItem objRs!religion
lstReligion.ItemData(lstReligion.NewIndex) = objRs!religionID
objRs.MoveNext
Loop
Now you can use the lstReligion.ItemData(lstReligion.NewIndex)
For example when the user clicks the list, the ItemData will be selected and perhaps added (after an insert or update statement) in the first table.
|
|