Solved

How to Display Text but Capture unique ID in a combo box

Posted on 2011-02-28
3
325 Views
Last Modified: 2012-05-11
Hello! I have such trouble phrasing my questions so please forgive the short sentences. Hopefully it will make it easier to understand.

I have a form with a combo box. I want the combo box to pull information from a table. this table (tbl_Groups) only has two columns (GRP_ID, GRP_Name).

The control source is GRP_ID

Row Source contains this Query:
SELECT [tbl_Groups].[GRP_ID], [tbl_Groups].[Grp_Name]
FROM tbl_Groups
ORDER BY [Grp_ID];

I'd like the combo box to show the group name but capture the grp_ID so that it can fill out a separate table when I add a record.

I hope this makes sense! Thanks! using access 2007
0
Comment
Question by:jtovar3
3 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 500 total points
ID: 34999052
0
 
LVL 28

Expert Comment

by:omgang
ID: 34999064
Set the column width for the first column (GRP_ID) to 0".  The second column will be displayed but the first column will still be the bound column.
OM Gang
0
 

Author Closing Comment

by:jtovar3
ID: 34999177
Perfect. Thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now