A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box Look up



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2008, 03:52 PM posted to microsoft.public.access.tablesdbdesign
Musa via AccessMonster.com
external usenet poster
 
Posts: 35
Default Combo Box Look up

I have a Combo Box that lists Names. Each name can be in there twice. There
is a Id and a time id that identifies each record. How can I choose a
record from the combo box based on 2 identifers ?
For example, I would like to choose id 20 with time id =2 and have that
information display in the form...etc.

Id time id
20 1
20 2
11 2
15 1
15 2
30 2



Thanks

--
Message posted via http://www.accessmonster.com

  #2  
Old September 9th, 2008, 05:51 PM posted to microsoft.public.access.tablesdbdesign
Ray C
external usenet poster
 
Posts: 215
Default Combo Box Look up

The problem with your logic is that your Id field has duplicates and your
Time ID field also has duplicates. Realistically, you should have a unique
identifier for the records that are being displayed in your combo box and use
that as your bound field. That way, you simply display the value by using the
following code:

Me.MyComboBox = MyUniqueIdentifierValue

Ray

"Musa via AccessMonster.com" wrote:

I have a Combo Box that lists Names. Each name can be in there twice. There
is a Id and a time id that identifies each record. How can I choose a
record from the combo box based on 2 identifers ?
For example, I would like to choose id 20 with time id =2 and have that
information display in the form...etc.

Id time id
20 1
20 2
11 2
15 1
15 2
30 2



Thanks

--
Message posted via http://www.accessmonster.com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.