While watching this tutorial,
http://www.youtube.com/watch?v=0JL9ajkOavw
the author described a way to copy data from his website into an Access table. This seems like a useful mechanism, but after playing with it a bit, I discovered that it seems to have a few quirks. Here's a little summary I wrote for my own use in the future. I would appreciate any critiques or suggestions:
Copying Multiple Records from Tabular Data
Tabular data (from Word, Excel, website) can be (a) added to an Access table (new records) or (b) written over existing records in an Access table. The pasted data can include all fields or two or more adjacent fields. I do not know how to make this work with either non-adjacent fields or a single field.
- Access:
- Determine which fields will be affected.
- Ensure that the fields are adjacent. If it’s a large amount of data, it may be worthwhile to temporarily rearrange the the fields in the Access table to facilitate the copy.
- Source (Word, Excel, website):
- Make sure that the columns of data to be copied match the table fields exactly: same order, same data types, etc.
- Make sure that there is a column of source data for any Autonum fields that are selected. The data will be ignored, but if it isn’t there, the next column of data will be used (and discarded).
- Copy the source data to the clipboard (all rows and columns).
- Access:
- If the records are to be added, select the corresponding fields in the (New) record.
- If the data is to overwrite the data in existing records, select the rectangle covering those records and fields.
- A yellow border will be drawn around the selected records and fields.
- Paste the data (Ctrl-V).
- Access will append/overwrite the data and put up a confirmation Message Box.
- If it’s correct, click Yes. If not, click No.
A few questions:
- Access allows me to select the Autonum field and does not complain when I paste into it, but then throws the data away. This seems like very bad UI design. If I make a mistake and select the wrong fields, and especially if the data is such that an error is not obvious, this could result is really bad results.
- There doesn't seems to be any way to append 50 new records that only contain a single field. If I select just one fields in the (New) record, even if I copy a 50 x 1 column of data, Access pastes it all into that one field.
BTW: This series of tutorials are pretty good. They are very elementary, but they don't take long to go through (about 10-12 minutes each). I've learned a few useful things. When I finish the free ones, I plan to try his paid tutorials. I'll try to remember to post a review here.