+ Reply to Thread
Results 1 to 8 of 8

Adding review and delete form onto existing Excel database

Hybrid View

  1. #1
    Registered User
    Join Date
    05-01-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    19

    Adding review and delete form onto existing Excel database

    Hi all,

    I created a database on Excel 365 with no trouble. I can input data into the form and when I ask it to, it adds the information into the database and sorts it for me alphabetically.

    However, for some reason I haven't been able to create a form that allows me to review and delete data if necessary. The database is for staff, and the rota documents take the information from the staff database to create the rota.

    Sometimes new staff come and sometimes old staff leave, so I want a form that means that you can review, edit and delete entries, but that doesn't alter the formatting. So, every time an entry is deleted, the form re-organises itself.

    I have attached the current form as it is at the moment, with real names deleted. Is there anyone that can demonstrate the VBA code that will allow me to create a review, edit and delete form to go onto the database?
    Attached Files Attached Files
    Last edited by Fire_The_Torpedo; 05-04-2019 at 05:39 AM.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Adding review and delete form onto existing Excel database

    Hi Fire_The_Torpedo

    This will give you an idea...in attached file...Userform1

    To edit or delete...select surname from staff surname search...
    Can make edits to all controls except surname...Once finished editing press [UPDATE]

    To delete a entry...select surname from staff surname search...press [DELETE]

    to add a entry....IGNORE staff surname search dropdown....

    complete all other boxes and selections and press [ADD]

    That is the gist of it...


    EDIT...Added a new upload as there was an error in Update Button Code...
    Attached Files Attached Files
    Last edited by Sintek; 05-03-2019 at 04:50 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Adding review and delete form onto existing Excel database

    Thanks.gif
    Remember to mark thread as solved

  4. #4
    Registered User
    Join Date
    05-01-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Adding review and delete form onto existing Excel database

    This is excellent. The only problem I have is that I keep getting a debugging error when I click on the UPDATE button. Please could you look at that?

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Adding review and delete form onto existing Excel database

    The only problem I have is that I keep getting a debugging error when I click on the UPDATE button
    Hence the EDIt in post 2 where I uploaded a new file...

  6. #6
    Registered User
    Join Date
    05-01-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Adding review and delete form onto existing Excel database

    Sorry, didn't see that. Must have downloaded it before.

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,410

    Re: Adding review and delete form onto existing Excel database

    Another version.
    Press SMS, clear form to enter new staff member, press new to add the new record.
    The rest is intuitive.
    torachan.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-01-2019
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Adding review and delete form onto existing Excel database

    Thank you both.

+ 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. Adding new record to existing database table with a form
    By Mongoloid in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-10-2016, 03:58 PM
  2. [SOLVED] adding formula to existing database
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 11:05 PM

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