I've been trying to teach myself Access, so I'm just barely aware of the conventions; please pardon any newbie errors. if presenting the problem in a different format would be better, please let me know!
So, I've currently got bibliographical information in one big, not-normalized table (tblPublicationEntries) with 515 records. Here are my fields:
EntryID (primary key)
HD (foreign key)
PubID (currently null; needs to be a second foreign key; see below)
Corpus
CorpusVolume
AuthorLast
AuthorFirst
PubYear
CatalogNumber
PageNumberStart
PageNumberEnd
FigNumber
The problem with this set up is that, really, Corpus, Corpus Volume, AuthorLast, AuthorFirst, and PubYear taken together should be split off into a separate table. I figured out how to do that part by making a new table with a SELECT DISTINCT query (=tblPublication). I then added a new Autonumber field to be the primary key of that table, leaving me with this:
PubID (primary key)
Corpus
CorpusVolume
AuthorLast
AuthorFirst
PubYear
This results in 158 records, a number of which include null values for various fields. What I'm trying to do now is get my nice new tblPublication.PubID (primary key) numbers to go into the tblPublicationEntries.PubID (foreign key) field in my original table, so that I can set up a one to many relationship between tblPublication and tblPublicationEntries.
I tried an UPDATE query, but couldn't figure out how to get the WHERE clauses to work since a relationship doesn't currently exist between tblPublicationEntries and tblPublication. The "Enter Parameter Value" dialog box keeps popping up, and what I was trying to do was avoid having to enter all of the information by hand in the first place. Any suggestions?