Results 1 to 4 of 4
  1. #1
    gm_lowery is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    13

    Programming a counter for a library database


    Hi everyone,

    I need a little bit of help. I built a library database for a client about a year ago. Now they have come back with a request to put in place a counter for how many times a book has been checked out. The problem is that there is no button that checks books out. They simply click a check box to indicate whether the book is available or not. Any ideas how I could program a counter for this/

    Thanks.

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You could add a long integer number field to the underlying table. Set its default property to 0. You will also have to update the field's value for all existing records to zero. Then in your form you could use some code in the on click event of the check box that increments the count if the check box is checked. I've attached an example database.
    Attached Files Attached Files

  3. #3
    gm_lowery is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    13
    This worked perfectly. Thanks for your help!

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome.

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

Similar Threads

  1. Counter
    By Skroof in forum Access
    Replies: 3
    Last Post: 05-14-2012, 08:25 AM
  2. I want to learn database programming
    By shish in forum General Chat
    Replies: 3
    Last Post: 04-22-2012, 09:33 PM
  3. Database Usage Counter in Main Form
    By rkalapura in forum Forms
    Replies: 5
    Last Post: 04-15-2012, 09:02 PM
  4. Need help designing database and programming
    By meissnerb in forum Database Design
    Replies: 1
    Last Post: 04-11-2012, 04:32 PM
  5. Database Counter
    By Kapelluschsa in forum Access
    Replies: 5
    Last Post: 08-10-2011, 02:41 PM

Tags for this Thread

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