Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 9th, 2005, 09:21 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default combo box

i have 2 tables one has info on books the other has the info on who has the book. there are several copies of the book so multiple people can have multiple copies of books. i have a a form set up whic allows me to add new books and it has a sub form so i can enter who has it. the problem i'm having is i would like to somehow use a drop down to select people who have the book. either have a dropdown in the subform or on the original form. any idea's

  #2 (permalink)  
Old December 9th, 2005, 05:23 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You would have to redesign the table the is in the subform so that you would enter a the borrower's name using a drop down. You would have to create a table of borrower's, and then create a look up to the borrower's table from the junction table in your subform.

You would thus have:

tblBook
BookID
BookTitle
(other book info...)

tblBorrower
BorrowerID
LName
FName
(other borrower info...)

tblLoan - In your subform
LoanID
BookID - look up to tblBook
BorrowerID - look up to tblBorrower
(other loan info...)

This would allow you to look up borrowers in the book table form, and to look up books in the Borrower table form as well.

HTH

mmcdonal


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
Combo box to display items from parent combo box Gini Visual Studio 2008 0 June 18th, 2008 12:30 AM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.