473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

import into access using some king of mapping of fields

Hi.

I am fairly new at Access and used to use Lotus Approach. There was one function in Approach I used to find very useful and I can't seem to find it in Access.

It is to do with importing records into an existing table. Rather than automatically add to the list of records I have in my already existing table in Access, I would like to update (and add if necessary).

For instance: I may have a table in access with fields such as first name, last name, address1, address 2, town, postal code, etc.... Say the field "postal code" is empty in my access table. But I have an xl spreadsheet with the same field name. In that xl file, there is a record that has the same first name, last name and address 1, but it also has something in the postal code field.

How can I tell access to add the content of the field "postal code" in xl to my already existing table in access in the already existing record in the field called "postal code"?

Is there any way I can associate a mapping criteria to access when it does the import?

I hope this is clear and I thank you in advance.

Eric
Oct 2 '07 #1
1 1235
nico5038
3,080 Expert 2GB
For this you can use a workaround. Just link or load the xl file into a temp table.
Next create a UNION query like:
Expand|Select|Wrap|Line Numbers
  1. select * from tblOriginal
  2. UNION
  3. select * from xl
  4.  
Now use this UNION in a groupby query and use for the "unique" fields (firstname, lastname, etc.) the GroupBy option and for the "non-unique" fields (like Zipcode meail, etc.) the Max option from the grouping combobox in the graphical query editor.
Save this query and use it to create the final table with a CreateTable query.

Idea ?

Nic;o)
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
3
by: MLH | last post by:
A wide comma delimited text file import into A97 failed with an overflow error. I'm estimating it to have been no more than 1000 records. 100% of all the fields were quoted strings or ZLS's. ...
1
by: PALLAVI SHARMA | last post by:
Sir, i have configure the ms access file on webserver. MS. Access file is showing in .../db/mohan.mdb on web server. could you tell me what path should in write in my language to update the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.