Results 1 to 4 of 4
  1. #1
    jamescrowe is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Location
    w sussex
    Posts
    1

    Duplicates in records

    I am trying to prevent a user entering duplicates of date and time in an appointments table for the same doctor..how do I do this?

  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,850

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Orange's advice is technically true and there are other alternatives. It depends on the style of user interface you are developing.

    One approach is to use combo boxes (drop downs) for the time slots - and with the underlying query of the combo box only offer / display those that are available.

    Another approach is to do a Dlookup after the entry and then pop up a message.

  4. #4
    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,850
    Here's another possible method. See this free video tutorial showing how to have 2 listboxes, and moving between them.
    Could be used as IsAvail, IsBooked

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

Similar Threads

  1. Replies: 15
    Last Post: 01-17-2014, 12:08 PM
  2. Duplicates sets of records on conditon
    By rkalapura in forum Access
    Replies: 1
    Last Post: 12-16-2012, 07:06 PM
  3. Replies: 4
    Last Post: 06-18-2012, 07:01 AM
  4. Count unique records - no duplicates
    By Kevo in forum Queries
    Replies: 4
    Last Post: 08-15-2011, 01:19 AM
  5. Replies: 1
    Last Post: 05-27-2006, 12:35 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