+ Reply to Thread
Results 1 to 3 of 3

Using VBA for two different data entry forms, works correctly in one and not the other

  1. #1
    Registered User
    Join Date
    08-29-2019
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    8

    Using VBA for two different data entry forms, works correctly in one and not the other

    Hi,

    I created a data entry form in VBA that adds entries to a database.

    I used almost exactly the same code for both, with the only differences being the database locations and the names of the entry forms.

    In one of the data entry forms, the code works correctly and a new row is added for each entry into the form.
    The code for the correct one:
    Please Login or Register  to view this content.
    For the other entry form that links to a seperate sheet, the entries to the form replace the previous entry, rather than making a new row.
    Obviously I want it to create a new line for each entry into the form, yet it doesn't do this.
    The code for this one:
    Please Login or Register  to view this content.
    I'm very new to doing this, so feel it's a very simple solution, but I can't figure it out.
    Any help will be appreciated.

    Thanks
    Last edited by Delly98; 08-29-2019 at 04:00 AM.

  2. #2
    Valued Forum Contributor WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    869

    Re: Using VBA for two different data entry forms, works correctly in one and not the other

    You're using column A to find the next row but you're not putting any data in there. Try this instead:

    Please Login or Register  to view this content.
    WBD
    Excel 2016 on Windows 10, looking for rep!

  3. #3
    Registered User
    Join Date
    08-29-2019
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Using VBA for two different data entry forms, works correctly in one and not the other

    Brilliant works perfectly now.

    Thanks a lot

+ 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. design data entry forms to make a double entry
    By Paacweci1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2019, 08:45 AM
  2. Replies: 0
    Last Post: 10-06-2011, 07:03 AM
  3. Data entry,user forms
    By MLMcM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2010, 04:25 AM
  4. Custom Data Entry Forms
    By paxile2k in forum Excel General
    Replies: 14
    Last Post: 04-02-2010, 02:15 PM
  5. Excel 2007 : Data entry forms using macros and buttons
    By carvejiber in forum Excel General
    Replies: 2
    Last Post: 03-17-2010, 02:33 PM
  6. Data entry/ forms
    By sukhi_01 in forum Excel General
    Replies: 4
    Last Post: 05-14-2008, 08:32 AM
  7. A question about data entry on forms and tables.
    By Marc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-01-2006, 12:45 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