So much for a knowledge *sharing* community :-(
Main Topics
Browse All TopicsI was looking for some examples on how to use the ComboBox with
adding items if i have more than one column ect....
When I do a F1 on the control it says that it can't find the frm20.hlp help file.
Does anybody have this help file?
If so could you email it to jrcp@mctcnet.net otherwise an example would be great.
Thanks,
Jcrp
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok, will repeat here :))
AddItem [Text for first column], Index (number of row) where row must appear.
Example 1:
Me.ComboBox1.AddItem "", 1
Me.ComboBox1.AddItem "", 2
Me.ComboBox1.AddItem "", 3
Me.ComboBox1.List(1, 1) = "Text for Column 1 of Row 1"
Me.ComboBox1.List(1, 2) = "Text for Column 2 of Row 1"
Me.ComboBox1.List(3, 1) = "Text for Column 1 of Row 3"
Example 2:
Suppose we have table contained Fields FirstName, SurName, Phone and ID
Dim Rs as Recordset, i as Long
Set Rs = db.OpenRecordset("MyTable"
if Rs.RecordCount> 0 then
With Me.Combo1
.Clear
.ColumnCount = 4
.BoundColumn = 1 'will store IDs
.ColumnWidths = "0;1;1;1" 'Hide IDs from user by setting its column width to 0
rs.MoveFirst
'Add each record to Combo
while not Rs.EOF
.AddItem "", i
.List(i,1) = Rs!ID
.List(i,2) = Rs!FirstName
.List(i,3) = Rs!SurName
.List(i,4) = Rs!Phone
i=i+1
Rs.MoveNext
Wend
end with
end if
rs.close
With best regards
Crin
Business Accounts
Answer for Membership
by: CrinPosted on 2000-04-10 at 08:42:33ID: 2700798
check your mail :))
WBR
Crin