+ Reply to Thread
Results 1 to 12 of 12

Preventing Duplicate Entries

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Preventing Duplicate Entries

    Hi

    I have a userform where users enter data and select a date and a time

    Worksheet ("CVdata")
    Column A = Date
    Column B = Time
    Column C = Gen Debt

    Userform
    Date text box = CVdate
    Time comboBox = ComboBox1

    I want to add a code in my Add data button which will prevent users from entering data which has the same Date and Time as a record on my worksheet

    Looked through the forums but cant seem to find an example of this, Please help?

  2. #2
    Forum Contributor
    Join Date
    03-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: Preventing Duplicate Entries

    try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Hi Thanks for replying

    Unfortunately the above code results in error

    Need the code to check if a record being entered has the same Date(CVdate) & Time(ComboBox1) as a record on my sheet(CVdata)

  4. #4
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Sorry to bump. any help please?

  5. #5
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Still had no luck, anyone please help?

  6. #6
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Anyone? please

  7. #7
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Preventing Duplicate Entries

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Hi Thanks for replying, again it is still allowing me to enter data with the same date and time as a record on my sheet "CVdata"

    This is my current button code for adding records

    Please Login or Register  to view this content.
    Want to add a code to this to prevent users from entering duplicate data (Same Date and Time)

    Any Ideas?

  9. #9
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Preventing Duplicate Entries

    upload your file.

  10. #10
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Copy of dashboard attached
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Preventing Duplicate Entries

    Perhaps something like ..............

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Preventing Duplicate Entries

    Works perfect, You legend, thank you so much have made my day

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1