I'm a newbie, so please be kind. I have two tables, authors and books. The primary table is authors, and it's primary key is authorid. The foreign key for the books table is also authorid. What I'd like to do is create a query selects the author's last name, and returns the authorid from the authors table. I then want to pass that authorid to a second query to add a book to the books table, using the authorid from the first query. Does anyone know if this is possible? I've never updated a table that uses foreign keys, and I'm unsure how to do it properly. I would appreciate all help and comments.
Peter V.
Peter V.