+ Reply to Thread
Results 1 to 12 of 12

Input rows multiple times depending on selection - Database

  1. #1
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Input rows multiple times depending on selection - Database

    Hello all,

    I want to input data in one sheet, when I press the button "Add to Dbase", the data has to appear in the table of sheet "Dbase".
    I do not want to use the excel forms.

    I have one table with all my clients (see sheet client list), each of them can buy a certain type of product (see sheet product list).

    Now, if I want to input data, I need the following:
    1) If I type in Smith as family name, only the products they can buy are visible in the drop-down list.
    2) The drop-down list has to be like the google search bar, f.e. if I write "i" in the field family name, Smith & Pitt should only be displayed in the drop-down list.
    3) I can select multiple objects in the drop-down list:
    In the drop down list you type or select the product you want (same mechanism as google search bar), push the "Select" button, and then the selected product will appear in the Product(s) selection box. All the products in the product(s) selection box will be added in the database.
    4) If the whole family buys a Book and a Game, I mark the button "Whole Family", and by doing so, the field of the first name is crossed (so I do not have to input data in that field) and in the database rows are automatically added for the family members.
    5) If I type in the first name, the family name will be filled in automatically.
    6) If family Smith or one of the members of the family wants to buy a 2nd Book with a promotion 1+1 for free on the same delivery date, I get a warning that they already have the 2+1 for free promotion.
    Can you help me with this?
    I inserted an example file.

    Thank you!
    Attached Files Attached Files
    Last edited by erikavb04; 06-21-2015 at 05:59 AM. Reason: New idea for multiple selection in drop down list

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Thumbs up Re: Input rows multiple times depending on selection - Database

    Hi,

    I have added some automation, you can customise rest till i get time to work on further ..Example Entry Dbase.xlsb

    Cheers!!
    Last edited by excelliot; 06-21-2015 at 04:55 AM.

  3. #3
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: Input rows multiple times depending on selection - Database

    Hi,

    Thank you!
    I don't know much about writing macro's, but I'm trying.

    I had another idea for the multiple selection in the drop down list:
    In the drop down list you type or select the product you want (same mechanism as google search bar), push the "Select" button, and then it will appear in the Product(s) selection box.
    All the products in the product(s) selection box will be added in the database.

    I added this example in the file:
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Thumbs up Re: Input rows multiple times depending on selection - Database

    check this example of combo box.. add more data for rich experience..if its ok, we can work further..
    Attached Files Attached Files
    Last edited by JBeaucaire; 06-28-2015 at 03:35 AM.

  5. #5
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: Input rows multiple times depending on selection - Database

    Hi,

    It doesn't seem to work that well?
    The select button doesn't work for the product, the drop down box of the family name freezes...

    But I think this is a work in progress, no?

    Thank you.

  6. #6
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Input rows multiple times depending on selection - Database

    Check this...

    Google type search box is disabled for time due to spacing issue, combo box working fine..Almost done except multi product adding in to dbase,

    check & let me know how you want to add it..

    Clear button added to clear old selected item & adding new items..

    On pressing add to database you will get prompt for offer as you wanted...

    Cheers!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: Input rows multiple times depending on selection - Database

    Hi,

    Ok, great! Thank you.

    Though I am missing the following:
    2) The drop-down list has to be like the google search bar, f.e. if I write "i" in the field family name, Smith & Pitt should only be displayed in the drop-down list.
    4) If the whole family buys a Book and a Game, I mark the button "Whole Family", and by doing so, the field of the first name is crossed (so I do not have to input data in that field) and in the database rows are automatically added for all of the family members.
    5) If I type in the first name, the family name will be filled in automatically.
    6) If family Smith or one of the members of the family wants to buy a 2nd Book with a promotion 1+1 for free on the same delivery date, I get a warning that they already have the 2+1 for free promotion.
    I noticed that there is a formula in C10 on the sheet "Input", what's the reason for it?

    If someone can help us finding a solution, I would be very grateful.

    Thank you.

  8. #8
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Thumbs up Re: Input rows multiple times depending on selection - Database

    I put everything in what you wanted except pt.4 (need more explanation), for pt. 6 you will get alter if same offer is applied e.g. if 2+1 offer is already availed & you are applying agian then u will get alert but no alert if 1+1 offer is applied...

    to activate google type search box you have to go to box & pres alt + down arrow then strat typing & data will be filtered select desired item..

    To start new entry click on new entry userform will be made blank, you can type in First name & select the same & click on sheet anywhere Family name will appear..

    Also you can navigate from one combo to another combo by pressing tab (no backward support), also when you press tab from B5 cell or right arrow from B5, Combo 1 will be selected..

    Check & let me know for changes

    Cheers!!
    Attached Files Attached Files
    Last edited by excelliot; 06-23-2015 at 12:28 PM. Reason: attachment changes

  9. #9
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: Input rows multiple times depending on selection - Database

    Hi,

    Okay, thank you.

    About no. 2 and 5:
    Is there a way that I do not have to press alt + down?
    It doesn't seem to work that well? I got this:
    Naamloos.png

    Explanation about no. 4:
    F.e. all members of the Smith family bought a game.
    The Smith family consists of John, Albert and Sylvia (see sheet Client list). If I mark the box "Whole Family", the box of the first name will preferably get dark or crossed, so no name should be entered, because the game will be for John, Albert and Sylvia.
    Thus in the database 3 rows will be added.

    About no. 6:
    Is it possible to get a warning if the promotion box is not blank and when the same product for the same family member, on a same delivery date is already entered?

    Thank you!

  10. #10
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Thumbs up Re: Input rows multiple times depending on selection - Database

    Ok, check now...added modification suggested by you..

    No as soon as you click in entry box macro will list all entry..

    Cheers!!
    Attached Files Attached Files
    Last edited by JBeaucaire; 06-28-2015 at 02:52 AM.

  11. #11
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Input rows multiple times depending on selection - Database

    hi did you checked this?

  12. #12
    Registered User
    Join Date
    09-13-2014
    Location
    Belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: Input rows multiple times depending on selection - Database

    Hello,

    Yes, it looks nice and seems to work well. Thank you!
    I will later look into the code, in detail.

    So I might pop up with other questions later. For now, it seems pretty good to me.

    Thank you Excelliot.

+ 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. [SOLVED] Convert Multiple Columns to Rows depending on an Input Value
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-07-2014, 04:01 PM
  2. Would like to reveal rows depending on input
    By schmick in forum Excel General
    Replies: 5
    Last Post: 02-03-2014, 03:48 PM
  3. VBA Macro to hide rows depending on the cell value - Can I do this multiple times?
    By Ndocksey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 09:00 AM
  4. Replies: 2
    Last Post: 06-19-2013, 08:14 AM
  5. Select rows depending on selection
    By Irprogram in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2008, 04:12 AM

Tags for this Thread

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