personal library

G

Guest

i am building a database for all the books in my library.

i have one master table Books

i want to use a form to keep a record of checking out a book. i want to use
a combo box to select the [title] of a book

display related fields from the books table. i'm not sure how to relate the
text boxes on the form to the combo box.
 
D

Duane Hookom

You can make sure your combo box's row source includes any fields from the
books table that you want to display on your form. For instance:
SELECT BookID, BookTitle, Author, Pages, Publisher
FROM tblBooks
ORDER BY BookTitle;
Then assuming your combo box name is cboBookID, you can use text boxes with
control sources like:
=cboBookID.Column(2) 'shows the author
=cboBookID.Column(4) 'shows the publisher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top