+ Reply to Thread
Results 1 to 5 of 5

Add multiple entries under same ID in userform

  1. #1
    Registered User
    Join Date
    09-14-2015
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    35

    Add multiple entries under same ID in userform

    Dear Experts,


    Thanks for all your suggestions and inputs you have provided me for different queries I have posted on this forum. Request your help again for an enhancement feature, to include in my existing user form.

    I have attached screen shot of user form, which is to input data for service requests. As per the current user form, under a service request ID we can input only single SITE CODE and related details. However, I am looking to enhance the user form, so that under the same service request ID, we can add multiple SITE CODE (dynamic) and then accordingly, update related details specific to that SITE CODE.

    In the database sheet, the different SITE CODE's and related details should fall under the same Service Request ID.

    However, I am wondering that with such feature, how the SEARCH functionality work in user form. Ideally, I searched with Service Request ID, it should display in list box, all SITE CODES added under it and if searched with SITE CODE, it should display details, specific to that SIDE CODE.



    To help better get a somewhat better picture, I have added a screen shot of the user form, I am currently using.

    Thanks a lot.
    Attached Images Attached Images

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Add multiple entries under same ID in userform

    I won't think you'd need a search box just for SR number and site code. If I understand your request, you should use a Combobx for the SR numbers, then load all the site code into a second combobox. Upon selecting the second combobox, the rest of the userform is filled out. To me, if you already display the record in textfields, then a listbox, displaying the SAME information is redundant.

    If you want to add an additional site under a SR number, then use the Add New Entry button to accomplish that.

    If, however, you're searching for text in all of the records, then your approach is correct.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    09-14-2015
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    35

    Re: Add multiple entries under same ID in userform

    Hello Tinbendr,

    Thanks a lot for your input.

    If possible, request you to help me with the appropriate vba code for the same.

    Thanks a lot

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Add multiple entries under same ID in userform

    I'll try to get an example together, but it might be this weekend before I can get to it. (Unless you can provide sample sheet, data & userform.)

    In the meantime, search for cascading or dependant comboboxes. That is the technique I'm refering to.

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Add multiple entries under same ID in userform

    Here's an example.
    Attached Files Attached Files

+ 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] when command button in userform is pressed.. look to find multiple entries
    By Jenkins27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2015, 03:15 AM
  2. [SOLVED] Prevent Duplicate entries in multiple column from VBA Userform
    By excel_126 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 03:13 AM
  3. Checkboxes in Userform Creates Multiple Data Entries
    By Daneshav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2013, 09:37 PM
  4. [SOLVED] Automatically add multiple original field entries total (that has multiple entries)
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 01:20 AM
  5. [SOLVED] Auto increment next cell when adding multiple entries from userform
    By chriscoetser in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-02-2013, 02:15 AM
  6. Replies: 11
    Last Post: 09-19-2012, 08:04 PM
  7. Using VBA: I have a list with multiple entries.Need to reduce down to unique entries
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2011, 03:19 PM

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