473,288 Members | 1,729 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,288 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 3125
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...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.