Solved

Microsoft Access Problem

Posted on 2013-05-17
11
324 Views
Last Modified: 2013-08-21
I have a Microsoft Access database and I am trying to import a CSV file, which contains additional data into the database, but I receive the error message "Can not perform this action" - is there any way of narrowing this down? As I am unsure where to start.

Thanks,
Reece
0
Comment
Question by:ModernITSupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +5
11 Comments
 
LVL 28

Expert Comment

by:omgang
ID: 39174947
How are you attempting to imoport the file?  What version of Access?
OM Gang
0
 

Author Comment

by:ModernITSupport
ID: 39174962
On the toolbar across the top it has import text file and it is on version 2013
0
 
LVL 28

Expert Comment

by:omgang
ID: 39174968
I don't have Access 2013 but suggest you try first to save the .csv file as a .txt file and see if Access will import it then.
OM Gang
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 20

Expert Comment

by:clarkscott
ID: 39174987
Can you open the file in Notepad?   Perhaps that will help determine what's going on.

Scott C
0
 
LVL 24

Expert Comment

by:Steve
ID: 39174994
Open the file in Excel, ensure that the data is in a tabular format (use Insert>Table if nescessary to be sure). Save as xlsx.
Use Access import from Excel. This can be better as the data will hopefully in a more Access freindly format.

ATB
Steve.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39175047
@ModernITSupport

if you are importing the .csv file to an existing table, and you are getting the error
- the structure of the existing table does not match the .csv file, csv file may have more columns.

- import the .csv file to a NON existing table. do you still get the error?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39175249
Asked by: ModernITSupport ,

How about posting this CSV file for us to examine...?
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39175302
Have you tried using the Import Specification?  The two attachments show the general import wizard,import wizard main form and then if you click the Advanced button on the Import Wizard, you can define your CSV fields more explicitlyimport spec, including indicating which ones to ignore.  You can also save the specification once you have it right so that you can re-use it if you are going to import data from that CSV format on a regular basis.
0
 
LVL 1

Accepted Solution

by:
chrisezard earned 500 total points
ID: 39179551
Another approach is to link the csv file to an Access table.
   External Data\Text File.
   Select Link to the data source...
   Press Browse to select your csv file and follow the Text Import Wizard.

Then import the data using an Append Query from the linked table to your target table.
This allows you to skip, rename, etc, columns from the csv file to match the target table.

You can see what's in the csv file, and you control the import process, for example you could filter records from the csv file with a WHERE clause in your Update Query. This works very well with large csv files.
0
 

Author Comment

by:ModernITSupport
ID: 39427338
I've requested that this question be deleted for the following reason:

not needed
0
 
LVL 1

Expert Comment

by:chrisezard
ID: 39428022
Thanks for the points!
I often search EE and find what I am looking for without asking questions. This question shows two different ways to import csv files, a common issue. For this reason I suggest it should not be deleted but I am happy to accept the Moderator's decision.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question