Results 1 to 3 of 3
  1. #1
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18

    Okay To Flag Status of One Table In Another Table?

    If you've got a library database with three tables: books, clients, borrowings, would it be okay to have a field in 'books' that flags whether or not the book is currently on loan - or should that fact always be elicited from a search of the 'borrowings' table?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    You should check into the Lending Library template database.

    http://office.microsoft.com/en-us/te...010206883.aspx

    https://www.accessforums.net/access/...late-9221.html

    Another to look at http://mylibrary.sharepoint.com/Pages/Downloads.aspx

    Query is the optimum method to determine status of book. That is a basic concept of relational database - not to save data dependent on other data but calculate it when needed. Automatically maintaining the 'flag' status requires code and if it gets out of sync with the 'borrowings' table, you have bad data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18
    Yes, just as I thought. I really only want to do it because I feel an urge all the time to minimise cpu cycles. Relic of a bygone day. Let the query search the 'loans' table.

    Thanks for the links. I've already downloaded one library access prog from MS Access. Bit hassly that was, got me a bit lost during the procedure, downloaded it and there was no 'lending' only an assets table, downloaded again more carefully and still didn't work, stumbled around and somewhere within Access I think I got an option to 'make' the lending library thing there and then ... I clicked that and now I've got it...

    Access 2007 Lending Library it is.

    I will have a look at the others you've kindly provided links to. Thank for your help. It is appreciated.

    regards,

    ab

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 16
    Last Post: 03-13-2012, 03:47 PM
  2. Design table - keeping worker status
    By snoopy2003 in forum Database Design
    Replies: 8
    Last Post: 02-23-2011, 12:48 PM
  3. Query to flag daily change in order status
    By Relyuchs in forum Queries
    Replies: 1
    Last Post: 01-21-2011, 02:53 PM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  5. Multi-select listbox and update flag in table
    By Suresh in forum Programming
    Replies: 0
    Last Post: 12-19-2007, 01:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums