PC Review


Reply
Thread Tools Rate Thread

What is the extra field added with a combo or list box

 
 
Corey
Guest
Posts: n/a
 
      20th May 2010
I posted this question once already but I think I forgot to specify a
discussion group, so here it is again, sorry if it's a duplicate.

Anyway... some of the time but not always, when I add an unbound combo or
list box control to a form, Access adds a corresponding column to the data
sheet portion of the form. Usually my reason for the control is to look up
and go to entered values. The extra field holds the value that is selected
in the control, but doesn't seem to do anything else. If I hide the column
the control will no longer do the search. What is this extra column and what
can I do differently to get rid of it? Any help would really be appreciated,
thanks!
 
Reply With Quote
 
 
 
 
golfinray
Guest
Posts: n/a
 
      20th May 2010
If I am understanding your question correctly, that extra column is your key
field. Searches on primary keys are always faster because they are always
indexed.
--
Milton Purdy
ACCESS
State of Arkansas


"Corey" wrote:

> I posted this question once already but I think I forgot to specify a
> discussion group, so here it is again, sorry if it's a duplicate.
>
> Anyway... some of the time but not always, when I add an unbound combo or
> list box control to a form, Access adds a corresponding column to the data
> sheet portion of the form. Usually my reason for the control is to look up
> and go to entered values. The extra field holds the value that is selected
> in the control, but doesn't seem to do anything else. If I hide the column
> the control will no longer do the search. What is this extra column and what
> can I do differently to get rid of it? Any help would really be appreciated,
> thanks!

 
Reply With Quote
 
 
 
 
Adrian C
Guest
Posts: n/a
 
      20th May 2010
On 20/05/2010 14:22, Corey wrote:
> I posted this question once already but I think I forgot to specify a
> discussion group, so here it is again, sorry if it's a duplicate.
>
> Anyway... some of the time but not always, when I add an unbound combo or
> list box control to a form, Access adds a corresponding column to the data
> sheet portion of the form. Usually my reason for the control is to look up
> and go to entered values. The extra field holds the value that is selected
> in the control, but doesn't seem to do anything else. If I hide the column
> the control will no longer do the search. What is this extra column and what
> can I do differently to get rid of it?


It's unbound, so data entered there (either typed direct or from the
dropdown) only exists in the form's data entry buffer. If you flip
between form view and datasheet view, you'll notice this control as an
extra column added alongside other fields (bound and unbound). However
as an unbound field, the value currently entered in it will be shown all
the way down the datasheet as long as there are table records to display.

However, hiding this field in datasheet view still allows VBA
(beforeupdate & afterupdate) events to work for me for the form control
in Access 2003. How is the search action triggered in your code?

--
Adrian C
 
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
Outlook 2003 Minor annoyance with added 'extra line breaks' added. Keith Microsoft Outlook Discussion 2 1st Jun 2009 06:57 PM
limit the contents of one combo/list box based on what's selected inanother combo/list box CDF Microsoft Access 11 7th Mar 2009 04:23 PM
combo box selection to auto fill a second combo box (or field) MSA Microsoft Access Forms 1 28th Feb 2008 10:05 PM
filtering or limiting combo/list box from another combo/list box =?Utf-8?B?am1r?= Microsoft Access Form Coding 20 26th Jan 2005 11:07 PM
Combo/List Box - Trigger secondary List/Combo Box? =?Utf-8?B?RG9yZWVu?= Microsoft Access Form Coding 3 14th Oct 2004 08:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 AM.