A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access 2007 - Intederminate relationship



 
 
Thread Tools Display Modes
  #11  
Old August 26th, 2008, 02:16 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Access 2007 - Intederminate relationship

Imports tend to be quite specific. There are so many problems that can
occur, e.g. inconsistent columns (data above/below/in the middle of the
valid columns that are just comments), inconsistent types (e.g. "N/A" in a
date column), new columns inserted since last import (so the columns are not
in the right order, or the names in the first row are different),
inconsistent data (e.g. "Acme Corp" is company 123 in the first row, but it
is company 456 in a later row), and so on.

Additionally the good data structure you are trying to import into varies
(e.g. a column can't be null, or has a validation rule, or is uniquely
indexed, or there is a validation rule, or has to match a foreign key value,
or ...)

Therefore the import routine needs to be written to test the data. One
approach is to import it (as is) into a temporary table, where you can run a
series of tests for all the things that could go wrong, and provide a form
where the user can fix the bad data. Once all critical problems are fixed,
you execute the series of append query statements that will write the data
into the real tables in your database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"kgoo" wrote in message
...
Hi Allen,
Do you know where I can find information on writing a good import routine?
I have a huge "company" spreadsheet of about 16,000 records and an agent
spreadsheet of about "8,000" records.
Let's say all my data uploaded without any problems... do you think the
structure of the tables should work based on my information provided?


 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.