I have a combo box named cboPrt_Num and a data field BladeName from DataEnvironment1.Blade_Name. I want the values of this field to populate the combo box, but only the first value appears. How do I get all the values to display?
Try faq222-2244 for guidance on getting the best answers here.
For this question use the AddItem method and loop through the recordset with MoveNext. There is sample code on the forum if you do a search on AddItem
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Essex Steam UK for steam enthusiasts
i = 0
Do While Not DataEnvironment1.EOF
cboPrt_Num.AddItem DataEnvironment1!Blade_Name)
cboPrt_Num.ItemData(i) = i
i = i + 1
DataEnvironment1.MoveNext
Loop
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.