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  

Default selections in a table



 
 
Thread Tools Display Modes
  #1  
Old December 23rd, 2008, 06:48 PM posted to microsoft.public.access.tablesdbdesign
Brutalius
external usenet poster
 
Posts: 4
Default Default selections in a table

Hello,

Suppose Columns A and B in Table 1 contain an industry name and industry
code, respectively. I then create a Table 2 which has drop down lists in
Column C to select industry names from Column A in Table 1. Can Access
automatically fill in the corresponding industry code into Column D of Table
2 that matches the industry name I selected in Column C?

Hopefully this makes sense.

Thanks!
  #2  
Old December 23rd, 2008, 07:19 PM posted to microsoft.public.access.tablesdbdesign
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Default selections in a table

On Tue, 23 Dec 2008 10:48:01 -0800, Brutalius wrote:

Hello,

Suppose Columns A and B in Table 1 contain an industry name and industry
code, respectively. I then create a Table 2 which has drop down lists
in Column C to select industry names from Column A in Table 1. Can
Access automatically fill in the corresponding industry code into Column
D of Table 2 that matches the industry name I selected in Column C?

Hopefully this makes sense.

Thanks!


Normally you would only copy ONE of those field to the related table and
use lookup mechanisms to display the other one. Just guessing but
typically the Industry Code would be the primary key in Table 1 and that
would then be the field you use as foreign keys on other tables.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot 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 01:46 PM.


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