+ Reply to Thread
Results 1 to 6 of 6

Submit form and update database

  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    Bali
    MS-Off Ver
    2010
    Posts
    12

    Question Submit form and update database

    Dear Expert,

    I want to have a form (sheet forms) which will automatically update the other sheet (db).

    Sheet forms, any user can open this form.
    - field sequence number will follow the last number from sequence_no in sheet db, readonly
    - name, user can put any character
    - department and title will follow sheet setup, i want it on drop down list.
    if department is Sales the the title will follow the according to the department
    - access_to_pos : if YES then field POS_LEVEL will be changeable
    POS_LEVEL: Cashier, Admin --> this field will be readonly if access_to_pos is YES
    - Access_to_door and access_to_admin is YES,NO dropdown list.

    submit button : once clicked will show yes/no conformation
    yes: the form will update sheet db accordingly, and send email to [email protected] sheet "forms" attached
    no : back to form

    cancel buttom : once clicked show the yes/no confirmation
    yes : will cancel all the form and close the spreadsheet.
    no : back to form

    sheet db and setup : only able to open/accessed with password

    I believe to that things will use vb programming or macro, i have been searching the best practice but getting more confuse.

    Please need your favor.

    regards,
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Submit form and update database

    Here you go. Enter admin in the name box to go into admin mode. You will be requested a password which you can change in the setup sheet. the current password is "pass".
    Attached Files Attached Files
    Last edited by Neil_; 10-05-2016 at 03:57 AM.
    Frob first, tweak later

  3. #3
    Registered User
    Join Date
    08-21-2015
    Location
    Bali
    MS-Off Ver
    2010
    Posts
    12

    Re: Submit form and update database

    Hei @Neil
    awsome, thats good.

    do you have chance to explain how to build that?

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Submit form and update database

    Not sure what you mean as it's a working build. If you want to add any more fields, go into admin mode and Copy / Paste existing fields in the cells below. Give the new fields names in the name manager, then amend the code behind the submit button to reflect the added fields. Yo would also need to change the html in the SendMe sub to add the new fields.

    Let me know if you want anything in the form changing and I'll be happy to do it for you.

  5. #5
    Registered User
    Join Date
    08-21-2015
    Location
    Bali
    MS-Off Ver
    2010
    Posts
    12

    Re: Submit form and update database

    Quote Originally Posted by Neil_ View Post
    Not sure what you mean as it's a working build. If you want to add any more fields, go into admin mode and Copy / Paste existing fields in the cells below. Give the new fields names in the name manager, then amend the code behind the submit button to reflect the added fields. Yo would also need to change the html in the SendMe sub to add the new fields.

    Let me know if you want anything in the form changing and I'll be happy to do it for you.
    Yes it works, I mean: If I would like to start build from scratch with above scenario, where do I begin?

  6. #6
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Submit form and update database

    To describe the work it took and to explain the methods would take the chapter of a book.

    To get the basic look and feel of the form:-
    Select all the cells in the form sheet, right-click and check the properties to see they are locked. Colour the form grey.
    Go through each of the input boxes and colour them white with a darker grey top and side to give a 3d effect.
    Give each of the input boxes names using the name manager. Right-click and check the properties to see they NOT are locked.
    Protect the sheet so that only unlocked cells can be selected.

    The code is more complex. You can study it by pressing Alt-F11 and viewing the sheets and modules through the project explorer on the left.
    Last edited by Neil_; 10-05-2016 at 08:04 AM.

+ 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. Have form update from database
    By jmcconville18 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-18-2015, 12:37 PM
  2. can i store my submit data from excel to mysql database
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2014, 02:03 AM
  3. Help with search, update, submit
    By jasonmcbee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2014, 01:50 AM
  4. building a form linked to a database that can update
    By Petezntrbl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-29-2013, 11:13 AM
  5. Replies: 1
    Last Post: 02-28-2013, 08:17 AM
  6. Replies: 1
    Last Post: 02-05-2012, 09:31 PM
  7. Creating a form to query and update database
    By pizlam in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2010, 02:37 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