Solved

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

Posted on 2011-02-28
3
324 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
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 …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…

757 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

17 Experts available now in Live!

Get 1:1 Help Now