Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2004, 07:13 PM
Registered User
 
Join Date: Nov 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Translate list & merge

Is there a way of taking a list of names and translating them. For example if a list of several hundred names has price data against them but the names need changing and the price data associated with the original name stays with the new one.

Example: Name AAA has 5 fields of price information but needs translating into symbol AA2. The translation list would be the same each day but the price data changes.

GRPinkney
 
Old February 29th, 2004, 05:13 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I think we need more information about the structure of the tables involved and what the translation rules are, do you use a lookup to map old names to new or is there a rule, for example AAA => AA2 might be replace the last character with the digit 2.

--

Joe
 
Old March 1st, 2004, 06:09 AM
Registered User
 
Join Date: Nov 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I receive a daily csv file that lists prices for each name but my database has different names so the prices need to be put against my names. The names on each list do not chnage often so the translation is more or less the same each day. For example:

incoming name is "F" but my Access database calls this "2S" and incoming name "SW" is called "8CO" (all without the quote marks)

I thought maybe I have to have two tables, one from the incoming file and one for my names and then link them in some way. I'm not a programmer but have used Acces for many years.

GRPinkney
 
Old March 1st, 2004, 07:44 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well you'd normally have a mapping table, tblMapper:
MapId Autonumber
SourceName Text
DestinationName Text

and then use that to relate the data.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
List tablesname from database & list databasename ittorget MySQL 3 September 10th, 2005 03:06 AM
List Style & Positioning Help Needed DanDan CSS Cascading Style Sheets 1 February 23rd, 2005 02:56 PM
Query database for List of tables & other details imsuneeta SQL Server 2000 2 January 18th, 2005 07:48 AM
Displaying a drop down list & contents of a file AAA Beginning PHP 2 March 23rd, 2004 09:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.