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

Home Posts Topics Members FAQ

Validating imported data

Hi there

Opinions on the best way to do this.

I want to import data from an Excel spreadsheet into Access and want the
data to be tested before the tables are updated. At the moment all the data
is validated via the data entry form where the BeforeUpdate event is used
for some fields and also in the form. I know these events won't fire if the
data is imported via code.

I was thinking about importing the data into another table first and then
use code to check the data. If the data is validated successfully, transfer
the data into the proper table via Append and Delete queries, or prompt the
user that there is something wrong with the data and the main table will not
be updated.

Now if the data is not transferred because it's not valid and the user wants
to import data from a different Excel spreadsheet, would it be better to
move the invalid data into a different table for the user to come back to at
a later date? This is so the table that holds the imported data only holds
one record at a time, checks the data and moves it to the correct location.

Are there any better ways to do this? I don't really want to import the data
directly into the proper table and find out that the data was not correct or
even that this data has been imported before.

TIA
Stewart
Nov 13 '05 #1
0 1224

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

Similar topics

1
2228
by: Andreas Håkansson | last post by:
Hiya, Is it possible to add a schema as an "embedded resource" in a project and use that schema to validate some xml? And how about if thet schema references another schema which has also been...
1
4207
by: Craig Beuker | last post by:
Hello, I am experimenting with this XmlValidatingReader and have a question about how it is working (or not working as would be the case) The sample documents and code are included at the end...
2
1505
by: Rolan | last post by:
Can one set limits on html imported records in Access 97? For example, would like to prohibit importing records or a group of records whose ReferenceID number is not within an acceptable number...
0
2424
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
4
2462
by: easoftware | last post by:
I am using VS .Net 2003 and VB. I have an app with one parent and two Mdi child forms. I need to validate data in the Mdi form. The Form.Validating event works when I try to close a Mdi form,...
5
4790
by: ameen.abdullah | last post by:
Hi Guys, I have a textbox in windows form that should only accept alphabets, numbers, spaces and underscore. If the textbox contains anyother character it should display a msg at the time of...
7
1930
by: tfoale | last post by:
Hi. I'm a newbie trying to modify imported files in VBA (Access 2003) and struggling with it. I have a set of large CSV files (too large to handle in Excel) each containing data related to a...
2
2550
by: lrheeza | last post by:
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...
8
4108
by: Peted | last post by:
I have an amazing problem which i think i have no hope of solving Im working with a c# dot net module that is hosted by and runs under a delphi form envrioment. Dont ask me how this insanity has...
0
7137
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...
0
7347
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,...
0
7416
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...
1
7073
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...
0
5656
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,...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
443
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...

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.