04-21-2019, 08:31 AM
|
#1
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Multi Column Combox
Does anybody know how to get multi columns in combo box ? I search on the net but so far no answer. There was one that had the code, but it did not explain as to how to compile the code and using in the program. I have also saw a video on youtube that had a DLL file, but it does show where to get not ? Does any body has any suggestions ?
Thank you
|
|
|
04-21-2019, 08:41 AM
|
#2
|
AWF VIP
Join Date: Jul 2005
Location: @ 8300' in the Colorado Rockies
Posts: 13,821
Thanks: 7
Thanked 311 Times in 301 Posts
|
Re: Multi Column Combox
Have you tried using the wizard to create the combo box?
__________________
(RG for short) aka Allan Bunch Previous MS Access MVP acXP, ac07, ac10, ac13 - WinXP Pro, Win7 Pro, Win10 Pro
Please post back to this Forum so all may benefit.
Teaching is not filling a bucket but lighting a fire.
|
|
|
04-21-2019, 08:51 AM
|
#3
|
Me.Dirty=True
Join Date: Jan 2013
Location: Massachusetts
Posts: 785
Thanks: 3
Thanked 238 Times in 224 Posts
|
Re: Multi Column Combox
or have you tried adjusting the column counts and column widths?
0 width will hide a column and anything else (>0) will show it.
|
|
|
04-21-2019, 09:01 AM
|
#4
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Re: Multi Column Combox
By wizard do you mean the toolbox ? Thanks for the suggestion, but my problem not in creating combo box but with the columns that the combo box will have. The comb box has only have one column and I it did to have more then on like in Access. I have seen a sample where they put data in single column and use "|" as divider for the data, but is it still one column and the when data is extracted form the database and loading into the combo box it will be messy because it goes into only column and only one line is used to load the data into the combo box.
|
|
|
04-21-2019, 09:08 AM
|
#5
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Re: Multi Column Combox
monke123,
In Vb.net there column count like in Access, at least I did not see one that is part of the problem with the combo box in Vb.net has only one column.
|
|
|
04-21-2019, 09:08 AM
|
#6
|
High Noon Moderator
Join Date: Jan 2017
Location: Somerset, UK
Posts: 11,285
Thanks: 115
Thanked 3,089 Times in 2,807 Posts
|
Re: Multi Column Combox
Open the form in design view & select the combo.
Now go to the Format tab on the property sheet and change the column count & column widths as suggested above
EDIT:
Oops - sorry - the above is for Access not VB.Net. Do you have something similar?
__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.
Colin (Mendip Data Systems) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Website links: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Common sense and a sense of humour are the same thing, moving at different speeds. (Clive James - RIP)
|
|
|
04-21-2019, 09:13 AM
|
#7
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Re: Multi Column Combox
isladogs,
Thank you for for the suggest, but the photo is for Msaccess. I need the one for Vb.net. Perhaps I have posted the question in the wrong forum.
Thank you
|
|
|
04-21-2019, 09:39 AM
|
#8
|
High Noon Moderator
Join Date: Jan 2017
Location: Somerset, UK
Posts: 11,285
Thanks: 115
Thanked 3,089 Times in 2,807 Posts
|
Re: Multi Column Combox
No it was my error. Realised immediately i'd posted. See comment below the screenshot.
__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.
Colin (Mendip Data Systems) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Website links: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Common sense and a sense of humour are the same thing, moving at different speeds. (Clive James - RIP)
|
|
|
04-21-2019, 04:10 PM
|
#9
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Re: Multi Column Combox - Changing text in combo box
For moment I am doing a working around the issue by using a "|" between items to divide the single column into multiple columns. When I did this I ran into the issue that when the item is selected the whole column is displayed on the text box when I only need first column. I used the 10 bytes for the first column and I able to extract the data by I can not seem to put this value into the combo box text value. I have tried it various events of the combo box, but no luck so far. Below is an example of the the items in the drop down look like.
Bundy | AL
Dylan | Bob
Bean | Mr.
When I select an item for Example Bundy | AL, I want only Bundy to appear on the Combo box text as the select item, not Bundy| AL. The reason that I want this is because I will searching in the database for that field base on the text of that field.
Does anybody know to fix this problem ?
|
|
|
04-22-2019, 08:26 AM
|
#10
|
Newly Registered User
Join Date: Feb 2019
Posts: 326
Thanks: 518
Thanked 24 Times in 23 Posts
|
Re: Multi Column Combox
|
|
|
04-22-2019, 09:09 AM
|
#11
|
Newly Registered User
Join Date: Mar 2012
Posts: 33
Thanks: 1
Thanked 1 Time in 1 Post
|
Re: Multi Column Combox
Yes, that is what I exactly what I need. I will tried it latter tonight when I get home. Thank you,
|
|
|
Thread Tools |
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
All times are GMT -8. The time now is 03:25 PM.
|
|