473,385 Members | 1,876 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,385 software developers and data experts.

MS Access 2003: Importing files and validating them

Hello everyone,

I am a newbie at MS Access and I need help!!!

I am importing an excel file using Import functionality in MS Access, all the fields are required but there are instances in the excel sheet wherein some of the fields are not populated. The fields that are being imported are: Full Name, first name, last name, initial (optional), userID and email address. How do i inform the users that the following records were not imported because the following values are not available.

How do I display the list of users which do not have the required values available?

I am importing the file to a temporary table. Is there an easy way of validating data from the temp table and then returning error messages to the user? Where can this be coded?

Because after validating the file that was imported, I have to check if this the main repository is empty. If it is empty, copy the data to the main repository table. If it is not empty, then compare the temp table with the existing table and then return a message what has been changed. If the user selects, YES then changes are copied to the main table.

thanks,
rhiz
Feb 29 '08 #1
2 2541
Stewart Ross
2,545 Expert Mod 2GB
...I am importing an excel file using Import functionality in MS Access, all the fields are required but there are instances in the excel sheet wherein some of the fields are not populated. The fields that are being imported are: Full Name, first name, last name, initial (optional), userID and email address. How do i inform the users that the following records were not imported because the following values are not available..
Hi Irheeza. Before delving into validation of missing rows, you need to check whether the import into Access is correctly transferring the original Excel data. Because Excel cells can contain numbers, text, or mixed alpha numeric values the import routines in Access can become confused over the right type of the data, which is guessed from the contents of the first row of data in the excel sheet.

As an example, if the first field of the first row imported has a number in it the Access import routine will create a numeric field in that position of the import table. If a later row in Excel has a text value in that cell instead of a number the Access import will stumble, because it can't put the text value into the numeric field. This will result in a missing field value in your Access table (and possibly an entry for that row in an error table, depending on how you are importing or pasting the data).

It could be that it is not the users that are at fault over missing data, but the Access import itself. Let's eliminate that first, so could you check the imported data against the Excel original and let us know, please?

Regards

Stewart
Mar 1 '08 #2
thanks, stewart, i will do that.
Mar 2 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mark Lees | last post by:
Just installed 2003 and the help file sucks because it tries to connect to Microsoft Online Help which takes too long. When I run Access and I'm not connected to the internet, it seems to connect...
1
by: Wayne Aprato | last post by:
I have a client who is running several Access 97 databases that I have written for them. They are about to upgrade to Access 2003. Is the default file format of Access 2003 still Access 2000 the...
7
by: Wayne Aprato | last post by:
I have several Access 2003 mde databases. When I try to open them in Access 2002 I get the following error: "The Visual Basic for Applications project in the database is corrupt." ...
2
by: Avalanche | last post by:
Greetings all. I'm building a database (Access 2003) of applicants. Included in this database I would like to include the PDF applications for individuals in the database, accessable from a form...
26
by: jamesbeswick | last post by:
I've been using Access since version 97 and I've migrated to 2003. I've noticed a substantial number of strange ActiveX/OLE and code corruption problems when writing databases. The only solution...
1
by: John Overton | last post by:
I have a new requirement to Import and Export Excel tables into and out of Access 2003. The Excel tables are located on a remote server but I know the path to the Excel Files. Can you please help...
4
by: Neelesh2007 | last post by:
I have designed software with VB6.0 as frontEnd & access-2003 as backend. For running action queries & for importing text files to my database i am using DoCmd object for which i have add reference...
2
by: Access | last post by:
Anyone else experiencing corruption problems using Access 2003 to edit .adp files? I've been experiencing corruption problems with a particular database. I've tried copying all the objects into a...
3
by: HistoricVFP | last post by:
Hello, I’ve been given the task of importing .dbf files from a very old version of Visual FoxPro (version 2.1) into Access (2003). When I import the data straight to Access it errors with: ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.