A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Yes/No in two Tables



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2005, 04:23 PM
R
external usenet poster
 
Posts: n/a
Default 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  
Old June 16th, 2005, 06:40 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

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  
Old June 16th, 2005, 11:15 PM
Sharkbyte
external usenet poster
 
Posts: n/a
Default

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  
Old June 17th, 2005, 12:06 AM
Sharkbyte
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.