Results 1 to 2 of 2
  1. #1
    yaro.kobzar is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    2

    Exclamation limiting amount of records

    Hi everyone,
    I'm new here and I need some help.
    I have been developing a registration access database and got stuck at one spot.


    I have:


    • <LI itxtHarvested="0" itxtNodeId="362">classes, instructors, and students tables <LI itxtHarvested="0" itxtNodeId="361">class rosters, instructors-classes, and students-classes query's
    • class roster, instructor records, and student records forms
    all in my database right now. The student records form is being used to register students to a particular class. The student records form shows student information and has a subform with students schedule. We register class based on class item # (a 4 digit class ID)

    Here's where i'm stuck at...
    I need a limit on a number of records that can be applied to a particular class (item #). For example class 4000 can have 30 students, so I need set a limit so that when we do registration we don't go overboard.

    That's number 1. The second issue is that we have combined classes. For example: classes 4001 and 4002 TOGETHER need to have a combined limit of 30.

    Is there anyway i can set a limit through a vba code? like a

    Private Sub ITEM___BeforeUpdate(Cancel As Integer) or anything at all?
    any help will be greatly appreciated...

  2. #2
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

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

Similar Threads

  1. Replies: 5
    Last Post: 05-14-2011, 04:31 AM
  2. Replies: 2
    Last Post: 10-25-2010, 10:45 PM
  3. Code to spell out check amount?
    By spkoest in forum Access
    Replies: 4
    Last Post: 06-16-2009, 07:44 PM
  4. Amount in word in MS. Access 2000 (VBA)
    By dannygan in forum Access
    Replies: 5
    Last Post: 06-07-2009, 11:52 PM
  5. Replies: 2
    Last Post: 06-18-2006, 10:50 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