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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Importing data by a user
I am wondering if someone can give me an elegant solution regarding
importing data. I am getting daily CVS files that I would like to import into Access 2000. I already have the table setup with the fields already name (i.e. policy number, insured, etc.) The problem is when I do an import the fields are in a different name (i.e. a, b, c, d, etc.). I don't want to rename the fields, data type over again. I just want to import and append the table. Now here is the tricky part, I need it to be user friendly, because the users are not familar with Access. Any advice or directions I will appreciated. Thank you. |
#2
|
|||
|
|||
If you are quite sure the data will be valid (always the right number of
fields, order, consistent names, right data types, no duplicates, within any validation rules, etc.), you could just attach the text file, and use an Append query to map the fields to the fields of your main table. In practice, you generally need to import into a table that has largely untyped fields (text), run all the validation checks, identify the foreign keys to associate the records with and so on. Once that's all right, use an Append query to copy the data into the real table, and empty out the temp table. And you probably need a log that creates a batch for each group, so you can undo (delete all records in a batch), and also prevent the same file from being imported twice. -- 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. "Alex Martinez" wrote in message ... I am wondering if someone can give me an elegant solution regarding importing data. I am getting daily CVS files that I would like to import into Access 2000. I already have the table setup with the fields already name (i.e. policy number, insured, etc.) The problem is when I do an import the fields are in a different name (i.e. a, b, c, d, etc.). I don't want to rename the fields, data type over again. I just want to import and append the table. Now here is the tricky part, I need it to be user friendly, because the users are not familar with Access. Any advice or directions I will appreciated. Thank you. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
multiple docs, one data source | kp | Mailmerge | 12 | January 31st, 2005 04:41 PM |
Rapid input Via datasheet | RudyR_Seattle | General Discussion | 4 | January 31st, 2005 01:33 AM |
How do I get 3 series in sync with the x-axis? | zizbird | Charts and Charting | 10 | October 25th, 2004 01:23 PM |
VBA Code problem error 9 | Speedy | General Discussion | 19 | October 15th, 2004 09:05 PM |
Is this possible with Excel Chart? | q582gmzhi | Charts and Charting | 1 | September 8th, 2004 03:33 AM |