473,411 Members | 2,129 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,411 software developers and data experts.

importing into ms access

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 districts have used the
same excel template and populated the same 32 data fields (columns). I
created one large excel file from all 49 files which gives me a master
table of 60,000 or so records. I have tried to import this master
table into access to run some queries and as I expected, access
imported some of the records but not all, creating an errors table for
me. I suspected that I needed to go and reformat each column in the
excel mater table, so that the formatting for each record was
identical. For example I made sure that all columns that needed to be
text were formatted as text (i.e., f name, l name.), etc. More
importantly, I have a unique student identifier, that is 10 digits long
that is assigned to each record and I made sure that this column was
formatted as text so that I can link it to another table of student
information that I already have. When importing the excel master table
into access, it does not import a significant amount of the student
id's, leaving that information within a particular record blank.
Access will import other field information for records, so it is not
rejecting the record altogether. I have also tried linking the table
instead of reporting and when linked for some records, access displays
"??NUMBER" in the cell, again an indication that access cannot
interpret that particular cell information. I have also tried saving
the master table as a .txt file and them importing, but still no
success.

I am convinced that this is do to all the different "output
formatting styles" from reporting districts when they generated their
files for me using their own student information systems. Does anyone
have any suggestions on have to reformat/clean the master table?? Or
any suggestion on how to perform an import without having such a high
percentage of my records rejected during the import process?

Thanks so much.

Sep 7 '06 #1
5 3139
hh******@gmail.com wrote:
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 districts have used the
same excel template and populated the same 32 data fields (columns). I
created one large excel file from all 49 files which gives me a master
table of 60,000 or so records. I have tried to import this master
table into access to run some queries and as I expected, access
imported some of the records but not all, creating an errors table for
me. I suspected that I needed to go and reformat each column in the
excel mater table, so that the formatting for each record was
identical. For example I made sure that all columns that needed to be
text were formatted as text (i.e., f name, l name.), etc. More
importantly, I have a unique student identifier, that is 10 digits long
that is assigned to each record and I made sure that this column was
formatted as text so that I can link it to another table of student
information that I already have. When importing the excel master table
into access, it does not import a significant amount of the student
id's, leaving that information within a particular record blank.
Access will import other field information for records, so it is not
rejecting the record altogether. I have also tried linking the table
instead of reporting and when linked for some records, access displays
"??NUMBER" in the cell, again an indication that access cannot
interpret that particular cell information. I have also tried saving
the master table as a .txt file and them importing, but still no
success.

I am convinced that this is do to all the different "output
formatting styles" from reporting districts when they generated their
files for me using their own student information systems. Does anyone
have any suggestions on have to reformat/clean the master table?? Or
any suggestion on how to perform an import without having such a high
percentage of my records rejected during the import process?

Thanks so much.
Unsure. What happens if you save it to a .TXT file; comma, tab delimted
file, and then import?

Sep 7 '06 #2

hh******@gmail.com wrote:
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 districts have used the
same excel template and populated the same 32 data fields (columns). I
created one large excel file from all 49 files which gives me a master
table of 60,000 or so records. I have tried to import this master
table into access to run some queries and as I expected, access
imported some of the records but not all, creating an errors table for
me. I suspected that I needed to go and reformat each column in the
excel mater table, so that the formatting for each record was
identical. For example I made sure that all columns that needed to be
text were formatted as text (i.e., f name, l name.), etc. More
importantly, I have a unique student identifier, that is 10 digits long
that is assigned to each record and I made sure that this column was
formatted as text so that I can link it to another table of student
information that I already have. When importing the excel master table
into access, it does not import a significant amount of the student
id's, leaving that information within a particular record blank.
Access will import other field information for records, so it is not
rejecting the record altogether. I have also tried linking the table
instead of reporting and when linked for some records, access displays
"??NUMBER" in the cell, again an indication that access cannot
interpret that particular cell information. I have also tried saving
the master table as a .txt file and them importing, but still no
success.

I am convinced that this is do to all the different "output
formatting styles" from reporting districts when they generated their
files for me using their own student information systems. Does anyone
have any suggestions on have to reformat/clean the master table?? Or
any suggestion on how to perform an import without having such a high
percentage of my records rejected during the import process?

Thanks so much.
I also have had this problem before. I found that MSAccess looks at
the FIRST line of data in your excel to set the field types, so may
need to have a dummy record on the very first one so it sets the field
correctly in access.

Also I have been using the import and export features of
asap-utilities.com (its free) and it sure helps make it easier on
importing.

Later
Tex

Sep 7 '06 #3
what happens if you create an impor specification and then use it when
you run the import. Then Access doesn't guess what type the field is.
It just uses the type you told it to.

Sep 7 '06 #4
On 7 Sep 2006 05:17:34 -0700, "hh******@gmail.com" <hh******@gmail.comwrote:
>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 districts have used the
same excel template and populated the same 32 data fields (columns). I
created one large excel file from all 49 files which gives me a master
table of 60,000 or so records. I have tried to import this master
table into access to run some queries and as I expected, access
imported some of the records but not all, creating an errors table for
me. I suspected that I needed to go and reformat each column in the
excel mater table, so that the formatting for each record was
identical. For example I made sure that all columns that needed to be
text were formatted as text (i.e., f name, l name.), etc. More
importantly, I have a unique student identifier, that is 10 digits long
that is assigned to each record and I made sure that this column was
formatted as text so that I can link it to another table of student
information that I already have. When importing the excel master table
into access, it does not import a significant amount of the student
id's, leaving that information within a particular record blank.
Access will import other field information for records, so it is not
rejecting the record altogether. I have also tried linking the table
instead of reporting and when linked for some records, access displays
"??NUMBER" in the cell, again an indication that access cannot
interpret that particular cell information. I have also tried saving
the master table as a .txt file and them importing, but still no
success.

I am convinced that this is do to all the different "output
formatting styles" from reporting districts when they generated their
files for me using their own student information systems. Does anyone
have any suggestions on have to reformat/clean the master table?? Or
any suggestion on how to perform an import without having such a high
percentage of my records rejected during the import process?

Thanks so much.
If you create a table in advance with enough fields, all of type text and 255 characters long, and
import by appending to this you can import almost anything and sort out the data types later.
If your data is already in Excel this should work quite easily.
Sep 7 '06 #5
thanks for the feedback. i will give all of your suggestions a try.

Sep 11 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
5
by: dixie | last post by:
If I sent a user an empty database container - dB with no tables and I needed them to import their tables into it and one of their tables was a hidden table with the prefix Usys, is there any way...
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...
1
by: winzy | last post by:
I have a table in Access which needs updating from an Excel file. Instead of importing the whole Excel like a new table in Acess, how do I do a partial import/update?? For example, Access table...
1
by: ltikusis | last post by:
I am currently using the trial version of MapPoint 2006 and I am having problems mapping data from Access queries. When importing a query, MapPoint does not match any of the fields to the map. I've...
3
by: mukeshsrivastav | last post by:
dear sir i want to move form excel to access. i have 5 excel file having same formats and fields.now i want to import all data in one access table. importing one file is easy .but importing and...
1
by: aconti74 | last post by:
Hello I am new to vba programming/coding. I am writing a program that goes through a directory of text files and imports them into the database. The problem is eventually the database gets to big...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.