PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

ComboBox with Multi columns

 
 
DBH
Guest
Posts: n/a
 
      9th Sep 2009
I have a combo box in my Custom Outlook form that has three columns in the
combo box. This data is retrieved via an Access database
when I look at the Value property of the combo box, I can only see one of
the columns ( I believe its the bound column in the combo box.
How can I access the other values in the selected line of the combo box?
( I need to place the addtional info in other parts of my form, typically a
text box)
Thanks!
Dave H


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      9th Sep 2009

Use the ComboBox.Column method for that. See
http://msdn.microsoft.com/en-us/library/bb207615.aspx

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"DBH" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have a combo box in my Custom Outlook form that has three columns in the
>combo box. This data is retrieved via an Access database
> when I look at the Value property of the combo box, I can only see one of
> the columns ( I believe its the bound column in the combo box.
> How can I access the other values in the selected line of the combo box?
> ( I need to place the addtional info in other parts of my form, typically
> a text box)
> Thanks!
> Dave H
>



 
Reply With Quote
 
 
 
 
DBH
Guest
Posts: n/a
 
      9th Sep 2009
Tried cboGroupCategory.Columns(1).Value and a couple variations and Outlook
says its it doesn't support this property or method.
Am I missing something?
Thanks!
Dave

"Sue Mosher [MVP]" <(E-Mail Removed)> wrote in message
news:%23Umk$(E-Mail Removed)...
> Use the ComboBox.Column method for that. See
> http://msdn.microsoft.com/en-us/library/bb207615.aspx
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "DBH" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I have a combo box in my Custom Outlook form that has three columns in the
>>combo box. This data is retrieved via an Access database
>> when I look at the Value property of the combo box, I can only see one of
>> the columns ( I believe its the bound column in the combo box.
>> How can I access the other values in the selected line of the combo box?
>> ( I need to place the addtional info in other parts of my form, typically
>> a text box)
>> Thanks!
>> Dave H
>>

>
>



 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      9th Sep 2009
Yes, you apparently missed the fact that the method name is Column, not
Columns.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"DBH" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Tried cboGroupCategory.Columns(1).Value and a couple variations and
> Outlook says its it doesn't support this property or method.
> Am I missing something?
> Thanks!
> Dave
>
> "Sue Mosher [MVP]" <(E-Mail Removed)> wrote in message
> news:%23Umk$(E-Mail Removed)...
>> Use the ComboBox.Column method for that. See
>> http://msdn.microsoft.com/en-us/library/bb207615.aspx


>>
>> "DBH" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>>I have a combo box in my Custom Outlook form that has three columns in
>>>the combo box. This data is retrieved via an Access database
>>> when I look at the Value property of the combo box, I can only see one
>>> of the columns ( I believe its the bound column in the combo box.
>>> How can I access the other values in the selected line of the combo box?
>>> ( I need to place the addtional info in other parts of my form,
>>> typically a text box)



 
Reply With Quote
 
DBH
Guest
Posts: n/a
 
      9th Sep 2009
Eyesite.... A wonderful thing to have!!!!
Thanks and it worked great!!!
Regards and many thanks!!!
Dave

"Sue Mosher [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yes, you apparently missed the fact that the method name is Column, not
> Columns.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "DBH" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Tried cboGroupCategory.Columns(1).Value and a couple variations and
>> Outlook says its it doesn't support this property or method.
>> Am I missing something?
>> Thanks!
>> Dave
>>
>> "Sue Mosher [MVP]" <(E-Mail Removed)> wrote in message
>> news:%23Umk$(E-Mail Removed)...
>>> Use the ComboBox.Column method for that. See
>>> http://msdn.microsoft.com/en-us/library/bb207615.aspx

>
>>>
>>> "DBH" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>>I have a combo box in my Custom Outlook form that has three columns in
>>>>the combo box. This data is retrieved via an Access database
>>>> when I look at the Value property of the combo box, I can only see one
>>>> of the columns ( I believe its the bound column in the combo box.
>>>> How can I access the other values in the selected line of the combo
>>>> box? ( I need to place the addtional info in other parts of my form,
>>>> typically a text box)

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-column combobox - allow text to span columns? cwrm4@yahoo.com Microsoft Excel Programming 1 1st Sep 2007 12:37 AM
How to Create Combobox with Multi-Columns Long Saroeurn Microsoft Dot NET Framework Forms 3 29th Jul 2006 12:16 PM
Parent Columns and Child Columns don't have type-matching columns microsoft news Microsoft ADO .NET 1 21st Sep 2004 10:08 AM
Re: convert multi columns to two columns Allan Rogg Microsoft Excel Worksheet Functions 0 11th Jul 2003 04:30 PM
Re: convert multi columns to two columns Allan Rogg Microsoft Excel Worksheet Functions 0 11th Jul 2003 02:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.