Results 1 to 4 of 4
  1. #1
    Skroof is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Location
    South Africa
    Posts
    21

    Counter


    How do i create a counter so that everytime you make a client booking,it saves the info and on the tenth booking the message box pops up and tell you that you made enough bookings for the month. I am now sure how can i approach this one. Any help is appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    You will have to calculate the count of bookings during the period and if = 10, give popup message. There are numerous ways this can be approached but all will probably require VBA code.

    Check out the DCount function in Access Help.
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Need more info for a specific answer, but generally you could use a DCount() to test the table for how many bookings exist for the month in question. This should get you started:

    DLookup Usage Samples
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Skroof is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Location
    South Africa
    Posts
    21
    Thanks all, I got help from Missingling

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

Similar Threads

  1. Database Counter
    By Kapelluschsa in forum Access
    Replies: 5
    Last Post: 08-10-2011, 02:41 PM
  2. ID Counter Problem
    By slash23 in forum Access
    Replies: 2
    Last Post: 07-06-2011, 11:57 AM
  3. Need counter to print
    By miziri in forum Access
    Replies: 1
    Last Post: 05-11-2011, 02:07 AM
  4. Incrementing Counter in Query
    By Rawb in forum Queries
    Replies: 9
    Last Post: 02-10-2011, 02:58 PM
  5. lap Counter
    By challenger in forum Access
    Replies: 4
    Last Post: 07-06-2010, 02:20 PM

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