473,386 Members | 1,795 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,386 software developers and data experts.

Importing Data

38
All-

I want to import excel data that is on one excel worksheet into my access database that has 5 tables in a relational format. I'm not sure how to do an import in such a way that I can import the data to the corresponding tables in access. Is there a way to import all the data into multiple talbes in one pass?

Thank you!

-Dev1
Mar 19 '08 #1
8 1278
janders468
112 Expert 100+
It will take multiple steps, I think the easiest way to do this is to either link or import the table into your database then run a series of append queries that append the portions of the spreadsheet to the tables they correspond to. You will probably run into issues of duplicating primary keys, because the spreadsheet is denormalized. You will probably want to make sure and use Select DISTINCT on all of your append queries, as well as checking for values that may have been previously entered into the database. Checking for key values that have been previously entered can be done in a number of ways. Two ways to do this are ignoring the warnings when you run the query, or by doing an outer join on your database table and filtering and only pulling in where the primary key field in your database table is null
Mar 19 '08 #2
Dev1
38
Janders468:

Thank you very much for the reply! I have found a article that illustrates just what you mentioned

-Dev1

It will take multiple steps, I think the easiest way to do this is to either link or import the table into your database then run a series of append queries that append the portions of the spreadsheet to the tables they correspond to. You will probably run into issues of duplicating primary keys, because the spreadsheet is denormalized. You will probably want to make sure and use Select DISTINCT on all of your append queries, as well as checking for values that may have been previously entered into the database. Checking for key values that have been previously entered can be done in a number of ways. Two ways to do this are ignoring the warnings when you run the query, or by doing an outer join on your database table and filtering and only pulling in where the primary key field in your database table is null
Mar 19 '08 #3
janders468
112 Expert 100+
You're welcome, if you'd like more detailed assistance just let me know.
Mar 20 '08 #4
Dev1
38
Janders468,

I'm still having issues with this. Is there anyway to send you a private message with an attachment?

-Dev1'

You're welcome, if you'd like more detailed assistance just let me know.
Mar 26 '08 #5
janders468
112 Expert 100+
You can send me a private message and I'll look over it and see what I can do.
Mar 26 '08 #6
Stewart Ross
2,545 Expert Mod 2GB
Hi. I'm sorry but for your own protection I have removed the e-mail address posted in the previous post. As you will see in the site rules we ask all posters not to post their e-mail addresses in such an open message.

What you can do is to send a private message to the other poster in which you provide your e-mail address. Click on the name of the poster above the message and you will see an option to send a PM to the person concerned.

MODERATOR
Mar 26 '08 #7
Dev1
38
How do you send a attachment for a private message?

-Dev1


Hi. I'm sorry but for your own protection I have removed the e-mail address posted in the previous post. As you will see in the site rules we ask all posters not to post their e-mail addresses in such an open message.

What you can do is to send a private message to the other poster in which you provide your e-mail address. Click on the name of the poster above the message and you will see an option to send a PM to the person concerned.

MODERATOR
Mar 27 '08 #8
Stewart Ross
2,545 Expert Mod 2GB
Hi Dev1. Sorry, but it is not possible to attach files to private messages. In your PM you would instead ask for the other poster's e-mail address, and send the attachment by e-mail after that.

It is possible to attach files to questions posted in this forum within one hour of creating a message, by clicking Edit after sending the message. This brings up a menu that includes managing attachments. There are limits to the sizes and types of files which can be attached, so the norm is to zip the contents and attach the zip file to the posted question.

-Stewart
Mar 27 '08 #9

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

Similar topics

2
by: steve | last post by:
Hi, I have researched but have not found a good solution to this problem. I am importing large amounts of data (over 50 Meg) into a new mysql db that I set up. I use >mysql dbname <...
11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
1
by: sparks | last post by:
I have never done this and wanted to ask people who have what is the best way. One person said import it to excel, then import it into access table. but since this will be done a lot, I am...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
0
by: Mike Collins | last post by:
I am importing a XML file and have not been having the best of luck in doing this, but I do have the following solution below. I will not be importing more than 2000 records at a time, but will be...
2
by: Mike Collins | last post by:
I am importing a XML file and have not been having the best of luck in doing this, but I do have the following solution below. I will not be importing more than 2000 records at a time, but will be...
5
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All...
12
by: JMO | last post by:
I can import a csv file with no problem. I can also add columns to the datagrid upon import. I want to be able to start importing at the 3rd row. This will pick up the headers necessary for the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.