+ Reply to Thread
Results 1 to 4 of 4

Userform adds entry new entry instead of updating existing

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Userform adds entry new entry instead of updating existing

    Hi

    My userform adds,finds and updates entries to a database. But when it comes to updating it ends up duplicating the entry its meant to update.

    Please find attached the workbook
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Userform adds entry new entry instead of updating existing

    Hello rayexcel,

    To avoid duplicate entries, you need to use a unique record identifier and check if it exists before you transfer the data from the UserForm to the worksheet.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: Userform adds entry new entry instead of updating existing

    How would i go about doing that? And how would that work if I am meant to update the entry?

  4. #4
    Registered User
    Join Date
    08-11-2014
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: Userform adds entry new entry instead of updating existing

    would the code provided by Jindon on this forum if adapted work?
    http://www.ozgrid.com/forum/showthread.php?t=157244

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 02-04-2014, 12:36 AM
  2. [SOLVED] After userform entry require tab entry
    By Tiger20 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2013, 12:24 AM
  3. Creating Update Button for either new entry or updating existing data
    By howieG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 07:26 AM
  4. Replies: 2
    Last Post: 07-09-2012, 02:05 AM
  5. Replies: 3
    Last Post: 07-31-2008, 06:16 AM

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