473,587 Members | 2,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Importing Excel Spreadsheets Into Access 97

There's an old Access app here that I've been updating. The original "programmer " set things up poorly and every month the end-user has been loading multiple spreadsheets by creating new tables and copying an old form to look at the new data. As a result the production database has 160+ tables and another 160+ forms.

I've managed to concatenate all the data in a logical fashion - not easily mind you; the column names differed slightly every month due to extra spaces etc.

Now I'm trying to automate the import process. DoCmd.TransferS preadsheet works well, except that I'm getting import errors caused by dissimilar data being in columns. Ie, the first 9 rows of a column contain numerics, the 10th alphanumeric.

So, I'm really looking for a way to ensure the spreadsheet headings are accurate, and to insert a dummy row just below them. I can delete the row via Access later.

Any Suggestions?? (Again, Access97..)
--
Brian
Nov 13 '05 #1
1 1596
As a work-around I have created an Excel macro to update the headings and insert a dummy row. Not ideal as it puts the onus on the user, but it works..

I'd still rather do it all from Access..
--
Brian
Brian Graham<Gr*****@ psac-afpc.com> September 1, 2005 11:41 am >>>

There's an old Access app here that I've been updating. The original "programmer " set things up poorly and every month the end-user has been loading multiple spreadsheets by creating new tables and copying an old form to look at the new data. As a result the production database has 160+ tables and another 160+ forms.

I've managed to concatenate all the data in a logical fashion - not easily mind you; the column names differed slightly every month due to extra spaces etc.

Now I'm trying to automate the import process. DoCmd.TransferS preadsheet works well, except that I'm getting import errors caused by dissimilar data being in columns. Ie, the first 9 rows of a column contain numerics, the 10th alphanumeric.

So, I'm really looking for a way to ensure the spreadsheet headings are accurate, and to insert a dummy row just below them. I can delete the row via Access later.

Any Suggestions?? (Again, Access97..)
--
Brian
Nov 13 '05 #2

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

Similar topics

11
3391
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 the last field, it only checks the top few 'cells' to see if there is any data, if not, the field is not imported). How do I 'force' Access to import the field, regardless if there is data in the top of the field or not? For instance, I might...
2
4984
by: Mr. Bungle | last post by:
When importing excel from access I am fully aware that one can import directly into a table. Can you get as specific via code or something to import data from an excel sheet to a FORM (Not Table) through a command button. For example: cell C5 on the selected excel spread sheet = textbox2 in the current form. This is for a service repair type database. The service technicians work out in the field and currently create their service orders...
1
1602
by: jfallara | last post by:
Hi all, kind of new to Access, but I'm learning as I go. What I'm currently trying to do is take data from an Excel spreadsheet and transfer it into an Access database with mutiple linked tables. The catch is, columns from the one spreadsheet are spread out over all 6 of my linked tables. e.g. 2 columns go to 2 fields in table A, another column goes to a field in table B, 2 more go to 2 fields in table C...etc. I can import the whole...
2
3594
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 that are "dirty" i.e. the field contents do not comply with the expected format (date/time) and they end up in a seperate table of import errors. (The records in "error" are actually empty fields.) This is a regular event and I do not want to...
2
2352
by: jason.teen | last post by:
Hi, I am having trouble importing a spreadsheet from Excel into an Access Database. I have noticed that even specifying the Cell Type of the Excel Data Cell, When I import it, still get Import Errors. Like Type Mismatch. The funny thing is that its all done automatically via the Wizard, so I dont even specify what the field type should be in my database, but it
0
767
by: DrewYK | last post by:
I have the project that may never end in front of me. I am creating a routine that will take SpreadSheets from Excel and bring them into Access. I am not using any "DoCmd"s because the goal is for the import code to be moved to a stand alone VB app which will use the Access DB as a workspace to process the data from the spreadsheets. Quite honestly, done right this may not even require Access or Excel to be on the users machine. ...
1
5147
by: thadson | last post by:
Hi, I'm trying to import specific cells from MS Excel 2000 spreadsheets to MS Access 2000 tables then move the spreadsheets to a different directory. I'm very new to this and I'm having trouble to implement this. I have worked out so far the code to import certain cells into 1 table, but I do not know how to import some other cells into another tables so the data would be connected and remain together. So lets say that I have 2 tables...
3
1541
by: Umoja | last post by:
Hi All, This seems like a simple thing, but I can’t seem to figure it out. I am familiar with transferring excel spreadsheets into access using the TransferSpreasheet function Ex:(DoCmd.TransferSpreadsheet acImport, 8, "LogTemplate", "C:\Documents and Settings\My Documents\Log template.xls", True, ""). I would like to import several spreadsheets into access without creating the table. I know how to manually import the spreadsheet but how...
0
7852
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7974
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.