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  dBforums > PC based Database Applications > Microsoft Access > Pick value from several columns of table data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-12, 09:34
Raddle Raddle is offline
Registered User
 
Join Date: Dec 2010
Posts: 81
Pick value from several columns of table data

Hi

I need to link data in two tables. The first is the root item, in this case the servers host name. I then need to use the server host model, to pick the cost from another table, where the model name is the row field but where there are serveral columns of data (location data) and the right one needs to be picked.

Does anyone have a good way of doing this?

If not then I think I need to create individual tables, per column (location) and then individualy run the query. Not pretty ..

Thoughts? And thank you!
Reply With Quote
  #2 (permalink)  
Old 02-05-12, 15:23
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Not sure to understand what you mean. Generally speaking when you want to create a rowset with data from columns in several tables, you create a query (possibly with subqueries) and use a JOIN clause to combine records from two or more tables.
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 02-08-12, 09:59
Raddle Raddle is offline
Registered User
 
Join Date: Dec 2010
Posts: 81
Hey thanks for coming back to me. Sorry for the delay this end. Ok so the requirement is to look in a table that has model in the first column, and then different prices for per model in the following columns; one for each location. So server X might be £10 in column B and £20 column C.

At the moment I have to make different table for each location, and reference those individually, whcih is a real pain when a pricing update comes along. Any clearer? Any more thoughts? And thank you again.

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On