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  

linking database column entries if a is this then b is that



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2009, 06:51 PM posted to microsoft.public.access.tablesdbdesign
Renae96
external usenet poster
 
Posts: 1
Default linking database column entries if a is this then b is that

I need help in linking several columns. If the first column is on thing then
that determines the contents of 3 other columns. How do you link them?
  #2  
Old March 11th, 2009, 07:18 PM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default linking database column entries if a is this then b is that

hi,

Renae96 wrote:
I need help in linking several columns. If the first column is on thing then
that determines the contents of 3 other columns. How do you link them?

This makes no sense.

The only thing I can imagine:

SELECT
firstColumn,
IIf(firstColumn=oneThing, columnA, columnD),
IIf(firstColumn=oneThing, columnB, columnE),
IIf(firstColumn=oneThing, columnC, columnF)
FROM
yourTable

mfG
-- stefan --
 




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 03:23 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.