PC Review


Reply
Thread Tools Rate Thread

Combo Box in Table

 
 
PL
Guest
Posts: n/a
 
      18th Apr 2009
For Access 2003.

1) In Table, I want to use a combo box with the options from another table,
what the syntax I should enter for the row source?

2) In Table, I want to use ID for the field, but want the combo box options
to be the names connected with these ID, what's the syntax?

Thanks
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      18th Apr 2009
>>what the syntax I should enter for the row source?
I have never seen a table with a row source.
Fields in a table can be lookup type but all I have read is that they are
bad neqs. I see many post where they have unsolvable problems.

>> 2 - Use a form with a combo box.


"PL" wrote:

> For Access 2003.
>
> 1) In Table, I want to use a combo box with the options from another table,
> what the syntax I should enter for the row source?
>
> 2) In Table, I want to use ID for the field, but want the combo box options
> to be the names connected with these ID, what's the syntax?
>
> Thanks

 
Reply With Quote
 
RoyVidar
Guest
Posts: n/a
 
      18th Apr 2009
On Fri, 17 Apr 2009 21:35:01 -0700, PL wrote:

> For Access 2003.
>
> 1) In Table, I want to use a combo box with the options from another
> table, what the syntax I should enter for the row source?
>
> 2) In Table, I want to use ID for the field, but want the combo box
> options to be the names connected with these ID, what's the syntax?
>
> Thanks


1 - technically you can do that either by using a lookup-wizard, or enter
the lookup tab for the field, but you do not want to do that. The
following page http://www.mvps.org/access/lookupfields.htm sums up most
of the reasons why you do not want to do that, and why most of us do not
use this "feature" at all.

Use combos on forms in stead. You're not, or at least, you should not,
allow your user access to the tables anyway, so combos on forms is the
preferred method

--
Roy-Vidar
 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      18th Apr 2009
On Fri, 17 Apr 2009 21:35:01 -0700, PL <(E-Mail Removed)> wrote:

>For Access 2003.
>
>1) In Table, I want to use a combo box with the options from another table,
>what the syntax I should enter for the row source?
>
>2) In Table, I want to use ID for the field, but want the combo box options
>to be the names connected with these ID, what's the syntax?
>
>Thanks


You can do this on a Form... but to my knowledge not in a Table. The Lookup
Wizard is *very* limited. As noted elsethread, you should probably NEVER use a
Lookup Field in a table, nor should you ever use a Table datasheet as a means
of interacting with your data.

Instead, use Tables for their real purpose - storing data - and use a Form to
interact with the data. It's very easy to create a combo box on a form - the
toolbox wizard gives you everything you need.
--

John W. Vinson [MVP]
 
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
combo box selection runs query to sum values in table not gettingparameter from combo box RCGUA Microsoft Access Form Coding 2 23rd Jul 2009 01:32 AM
Re: adding one field to table driven combo combo box Jeanette Cunningham Microsoft Access Forms 1 8th Apr 2009 02:27 AM
Combo box based on a table to exclude data from second table magicdds- Microsoft Access 4 12th Jul 2008 11:45 PM
Combo Box selection pointing to a table for a Second Combo Box =?Utf-8?B?UGVycGxleGVkaW5LWQ==?= Microsoft Access 1 4th Feb 2007 05:00 PM
Re: Combo box that chooses from table or adds to table if free form entry dabeck@vcu.edu Microsoft Access Forms 0 28th Jan 2004 10:02 PM


Features
 

Advertising
 

Newsgroups
 


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