Results 1 to 6 of 6
  1. #1
    _Chris_ is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    24

    Question Duplicate content ?


    Hi all, how do you do it, when for example, in a field, you don't want any duplicates, but in the same field you may have 2 values. So for example, in the email field, in one record you have test2@email.com then in another record (still in the email field), you have test1@email.com and as soon as you input for example test2@email.com it tells you you can't do that, as it would create a duplicate. How would you solve that one please?

  2. #2
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Don't understand the question. You say you don't want duplicates and the design is not allowing it. Then what's to solve?
    We're not talking about multi-value fields here are we?
    but in the same field you may have 2 values
    They should be avoided.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    _Chris_ is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    24
    In some records there may be just one email address, and in others, maybe two, the idea is for there not to be a duplicate in any part of the records for that field

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    How exactly do you have two email address in the same field?
    Are you dealing multi-value fields (like Micron mentioned - see: https://support.office.com/en-us/art...c-6de9bebbec31)
    Or is it simply a text field where you have multiple entries in a single string separated by something like a comma, space, colon, etc?
    If the latter, what is used to separate the various email addresses?

  5. #5
    Join Date
    Apr 2017
    Posts
    1,679
    Quote Originally Posted by _Chris_ View Post
    In some records there may be just one email address, and in others, maybe two, the idea is for there not to be a duplicate in any part of the records for that field
    What is 'record'? And What are 'parts of record'?

    I'll try to quess what you want to do. Do yo have some table of persons/firms, and among other information there is a field for mail address? And in some cases you have several mail addresses for one person/firm?

    When this is the case, you need 2 tables, p.e.:
    tblPersons: PersonID, FirstName, LastName, ...
    tblEMails: EMailID, PersonID, EMailAddress, ... or tblContacts:ContactID, ContactType, Contact (the other variant is for case, you have several different type contacts (phone number, e-mail address, home page address etc), and a person can have several of any of them.
    In tblEMails/tblContacts you can have for certain person any number of mail addresses/contacts

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    cross posted at:
    https://access-programmers.co.uk/for...37#post1534337

    -Chris-
    Please give an example from your tables showing the issue clearly.
    Readers should not have to guess at what you are having difficulty with.

    Read this from excelguru regarding cross posting.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-03-2015, 07:18 PM
  2. SUm duplicate values then delete duplicate rows
    By DonKaponne in forum Queries
    Replies: 1
    Last Post: 09-14-2014, 04:18 PM
  3. Replies: 3
    Last Post: 03-01-2013, 12:41 PM
  4. TextBox Content
    By myuser in forum Programming
    Replies: 1
    Last Post: 05-16-2012, 03:07 AM
  5. Hide the content of a field
    By peter_lawton in forum Queries
    Replies: 6
    Last Post: 01-17-2012, 11:24 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