+ Reply to Thread
Results 1 to 5 of 5

how to check the duplicate data entry in form?

  1. #1
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    how to check the duplicate data entry in form?

    hi
    Here i design the user form by help of this forum it work but it add the duplicate data so i want to code the from that check and than allow the user to enter the data.
    actual user form have to take the data from the "Brought sheet" and add the newly added from data and save in the "records"W sheet .but before adding the data to "Record "W Sheet
    it must check for duplicate data in "Record" W sheet if it find the same "ticker"symbol in "Record sheet" it will give the msg."Ticker already exist in records" then if still user want to add the data .form will allow the user to add data in "Record Sheet" by giving the msg."anyway Add the Ticker to Records" Yes or No option button. here i attech the work sheet which work without cheking the duplicate data by "Ticker"symbol pl help me to code the same
    thanks

    i hope i explain the way u can get what i want to do.
    Attached Files Attached Files
    Last edited by jay11; 03-18-2010 at 02:00 PM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: how to check the duplicate data entry in form?

    I believe this would do it. Under the Private Sub Enterdata_Click(), I include your top and bottom line where I inserted my code, below:

    Please Login or Register  to view this content.
    Does that work for you?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: how to check the duplicate data entry in form?

    Hi Dave
    that work great thanks.
    pl can u help to code when the "Record" sheet is protected so no one can change directly in the sheet but it can add the data and the "record sheet stay protected. in anther wards the "Record"sheet stay protected
    thanks in advance

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: how to check the duplicate data entry in form?

    No problem. To protect the sheet originally, go to Tools -> Protection -> Protect Sheet.

    Then when you are running the code, before you enter any data onto it, unprotect by:

    Please Login or Register  to view this content.
    Only include the Password argument if you put one on when protecting the sheet.

    Then once you are finished entering data:

    Please Login or Register  to view this content.
    Thats all it takes.

  5. #5
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: how to check the duplicate data entry in form?

    thanks Dave
    greatly appreciated u guys r rock.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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