PC Review


Reply
Thread Tools Rate Thread

Combo Box Showing only bound column when choice is made -- the new normal?

 
 
plh
Guest
Posts: n/a
 
      25th Apr 2011

Office 2010:

I have a Combo Box with this Row Source

SELECT tblTools.IDTool, tblTools.Tool, tblTools.Material,
tblTools.Type, tblTools.TNumber, tblTools.Location1033, tblTools.Bin,
tblTools.LocationTC, tblTools.Size FROM tblTools;

I change this with code which adds a "LIKE" statement according to the
value from a text box:

sRowSource = "SELECT tblTools.IDTool, tblTools.Tool,
tblTools.Material, tblTools.Type, " _
& "tblTools.TNumber, tblTools.Location1033, tblTools.Bin,
tblTools.LocationTC, tblTools.Size" _
& " FROM tblTools " _
& "WHERE (((tblTools.Tool) Like '*" & UCase(Me.txtSelect.Value) &
"*'));"

With Me
.cmbToolFilter.RowSource = sRowSource
End With

What bothers me is that although columns are shown when the combo box
is dropped down, only the value in the bound column shows in the box
when a choice is made. I would like to see the other columns as well.
I searched over the property list and there does not be a property to
do that. Is there one? I Am I just missing it without knowing it?
Thanx,
-plh
 
Reply With Quote
 
 
 
 
plh
Guest
Posts: n/a
 
      26th Apr 2011
On Apr 25, 3:36*pm, Marshall Barton <marshbar...@wowway.com> wrote:
> plh wrote:
> >Office 2010:

>
> >I have a Combo Box *with this Row Source

>
> >SELECT tblTools.IDTool, tblTools.Tool, tblTools.Material,
> >tblTools.Type, tblTools.TNumber, tblTools.Location1033, tblTools.Bin,
> >tblTools.LocationTC, tblTools.Size FROM tblTools;

>
> >I change this with code which adds a "LIKE" statement according to the
> >value from a text box:

>
> >sRowSource = "SELECT tblTools.IDTool, tblTools.Tool,
> >tblTools.Material, tblTools.Type, " _
> >& "tblTools.TNumber, tblTools.Location1033, tblTools.Bin,
> >tblTools.LocationTC, tblTools.Size" _
> >& " FROM tblTools " _
> >& "WHERE (((tblTools.Tool) Like '*" & UCase(Me.txtSelect.Value) &
> >"*'));"

>
> >With Me
> > * *.cmbToolFilter.RowSource = sRowSource
> >End With

>
> >What bothers me is that although columns are shown when the combo box
> >is dropped down, only the value in the bound column shows in the box
> >when a choice is made. I would like to see the other columns as well.

>
> The value displayed in the text portion on the combo box
> does not have to be the bound column. *It is the first
> visible (non zero width) column in the drop list as
> specified in the ColumnWidths property.
>
> To display other columns you need to use an additional text
> box with for each column you want to display. *Each text box
> would use an expression like:
> * * =cmbToolFilter.Column(N)
> where N is the zero based number of the column in the combo
> box's row source query.
>
> --
> Marsh
> MVP [MS Access]- Hide quoted text -
>
> - Show quoted text -


Thanx for the memory jog, I haven't put it in yet but have done
similar so know it will be fine.
-plh
 
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
Re: show 2nd field when combo box choice is made Jeanette Cunningham Microsoft Access Forms 0 21st May 2010 10:19 PM
Combo Box selection only shows bound column info after selection made. Coby Microsoft Excel Programming 1 18th Oct 2007 02:04 AM
combo box freezes after a choice has been made! =?Utf-8?B?RG93bmluZ0RldmVsb3BtZW50cw==?= Microsoft Access Form Coding 3 17th Feb 2006 12:17 PM
Drop down list in combo box--require choice to be made =?Utf-8?B?c21hZ3M=?= Microsoft Access Getting Started 3 14th Jul 2005 02:41 AM
field must be filled when a choice is made from combo box Tom Tripicchio Microsoft Access Forms 1 19th Nov 2003 01:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:50 PM.