Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mapping from Table

0 views
Skip to first unread message

Daniel

unread,
Dec 15, 2009, 11:11:03 AM12/15/09
to
I tried to make a mapping.

I have one table with diffrent account and with a specified number. and now
the numbers are new. so I have an other table with the old numbers in the
first column and with the new numbers in the second column. and now I want to
make a query table with the account in the first, which stay as before and a
column with the new numbers.
it has to be similar like in excel with vlookup. it must go to the table,
look the old number and outputs the new number.

I hope it's not to difficult to understand with my poo english....

Clifford Bass via AccessMonster.com

unread,
Dec 18, 2009, 7:37:19 PM12/18/09
to
HI Daniel,

Try something like this, substituting you table and column names as
necessary:

select B.OldAccountNumber, B.NewAccountNumber, A.AccountName, <other fields>
from tblAccounts as A inner join tblOldToNewAccounts as B
on B.OldAccountNumber = A.AccountNumber;

Please note, that unlike Excel, Access/SQL does not care about column
number, only column name. If that is not clear, please post the relavant
table structures.

Clifford Bass

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-externaldata/200912/1

0 new messages