Solved

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

Posted on 2011-02-28
3
331 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

734 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