If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Yes/No in two Tables
Hello-
I'm creating a Book database and im having some trouble. I have one table that stores the book's information called tblBooks. One field in this table is a Yes/No field. And if the book is loaned out then their should be a check mark in it. I have created another table called tblLoan that stores who loaned what out. I have a combo box that grabs the book titles so the user can pick what book to loan out. Is there a way that I can add another Yes/No to this table and when it is checked in the Loan table, the check in the tblBooks table be checked?? Thanks! |
#2
|
|||
|
|||
Consider reviewing the table structure at
http://www.databaseanswers.org/data_...rary/index.htm. If a book has any records in the [Books out on Loan] table that don't have a return date then the book is out. There should be no reason to maintain values in two or more tables. -- Duane Hookom MS Access MVP "R" wrote in message ... Hello- I'm creating a Book database and im having some trouble. I have one table that stores the book's information called tblBooks. One field in this table is a Yes/No field. And if the book is loaned out then their should be a check mark in it. I have created another table called tblLoan that stores who loaned what out. I have a combo box that grabs the book titles so the user can pick what book to loan out. Is there a way that I can add another Yes/No to this table and when it is checked in the Loan table, the check in the tblBooks table be checked?? Thanks! |
#3
|
|||
|
|||
Using the AfterUpdate event, for the Boolean (Yes/No) field tied to tblLoan,
you can add an Update statement to trigger the Boolean in tblBooks. Sharkbyte "R" wrote: Hello- I'm creating a Book database and im having some trouble. I have one table that stores the book's information called tblBooks. One field in this table is a Yes/No field. And if the book is loaned out then their should be a check mark in it. I have created another table called tblLoan that stores who loaned what out. I have a combo box that grabs the book titles so the user can pick what book to loan out. Is there a way that I can add another Yes/No to this table and when it is checked in the Loan table, the check in the tblBooks table be checked?? Thanks! |
#4
|
|||
|
|||
Test
"R" wrote: Hello- I'm creating a Book database and im having some trouble. I have one table that stores the book's information called tblBooks. One field in this table is a Yes/No field. And if the book is loaned out then their should be a check mark in it. I have created another table called tblLoan that stores who loaned what out. I have a combo box that grabs the book titles so the user can pick what book to loan out. Is there a way that I can add another Yes/No to this table and when it is checked in the Loan table, the check in the tblBooks table be checked?? Thanks! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
query problem with linked SQL tables when importing to new mdb file | Keith G Hicks | Running & Setting Up Queries | 2 | March 22nd, 2005 09:44 PM |
Joining 3 tables in a query | Chrismja | Running & Setting Up Queries | 1 | March 17th, 2005 07:31 PM |
Macro for Pivot Tables | Thomas | General Discussion | 1 | March 15th, 2005 01:03 AM |
Criterion - How to Write Query for Multiple Tables | jcinn | Running & Setting Up Queries | 1 | February 8th, 2005 12:42 PM |
Appending data from one table to multiple relational tables | Stranger | Running & Setting Up Queries | 42 | August 18th, 2004 02:55 AM |