Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2004, 07:13 PM
Registered User
 
Join Date: Nov 2003
Location: Truro, Cornwall, United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old February 29th, 2004, 05:13 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old March 1st, 2004, 06:09 AM
Registered User
 
Join Date: Nov 2003
Location: Truro, Cornwall, United Kingdom.
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
Reply With Quote
  #4 (permalink)  
Old March 1st, 2004, 07:44 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
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 Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.