Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 5th, 2008, 03:29 AM
angel_001 angel_001 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 6 angel_001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 26 sec
Reputation Power: 0
Smile How To Import Excel File To Ms Access, No Header

Hi,


I have a table named EMPLOYEES.

The fieldnames are Name,Surname, MiddleName, Age, Gender, Department.

I also have an excel file that needs to be imported to table EMPLOYEES.

The headers are Name, Surname, Middle Name, Age, Gender.

If you will notice , field Middle Name have space compared to MiddleName in the MS Access table EMPLOYEES.


How can I import the "CONTENTS" of an excel file only to the database?

Reply With Quote
  #2  
Old September 5th, 2008, 09:12 AM
dykebert dykebert is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 276 dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level)dykebert User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 10 h 5 m 28 sec
Reputation Power: 100
Ah yes the Access gods are sooooooo helpfull when importing Excel into Access. They assume that don't need to change ANYTHING, especially the field name or the data type.

I'm not entirely clear on what you are asking so here are my answers.

1. If you are asking simply if an Excel spreadsheet can be imported into Access then the answer is yes. File > Get External Data then either Import or Link. You will need to change the File type at the bottom of the dialog box to .xls.

2. If you are asking about importing directly into your employees table, I don't think you can. You must either import or link the Excel data to append it to an existing table.

3. If you are asking how to import an Excel file and modify the Field name ( or data type for that matter) I have always exported the Excel file to a .csv or other format and then done the import since you can control the field names etc when doing this type of import.

4. If this is something you need to regularly and are asking how to get the data from the excel sheet to your employees table I would recommend you link to the Excel sheet (see #1 above) and then create an append query. In the append query you can specify which fields go where so the name differece won't be an issue.

If you are asking about something else, please be specific.
__________________
P.S. I'm looking for work.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > How To Import Excel File To Ms Access, No Header


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT