Results 1 to 2 of 2
  1. #1
    Phillsoft is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    2

    Checking if data already exist in a Table

    Hi Guys

    I have a form with a number of fields that includes Learner Name, Surname, ID Type, IDNo just to mention a few. IDNo is a primary key. I would want a simple VBA code that can validate if the IDNo already exist in the table the moment it (IDNo) loses its focus when a user is entering data. Currently the form will only pop up a message when you have finished populating it since it is a primary key and its not user friendly. Can someone help


    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    This is a duplicate post!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

Similar Threads

  1. Checking a table for changes
    By Rando in forum Queries
    Replies: 2
    Last Post: 10-07-2010, 09:25 AM
  2. If value already exist or not in the table
    By dada in forum Programming
    Replies: 3
    Last Post: 08-19-2010, 01:57 AM
  3. Checking for data in table
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 07-27-2010, 01:32 PM
  4. Check if value exist in a table
    By Lucas83 in forum Programming
    Replies: 2
    Last Post: 06-02-2010, 11:42 AM
  5. Checking a record in a table
    By widstje in forum Programming
    Replies: 4
    Last Post: 11-07-2007, 11:28 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