+ Reply to Thread
Results 1 to 12 of 12

Doing search and update in workbook with userform

  1. #1
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Lightbulb Doing search and update in workbook with userform

    I have created a userform that can input data to worksheet from the form using multiple texboxes.. I now need codes for search, display and update the data on my worksheet,, I am thinking of a combobox to select a column criteria, textbox for the search purpose, and fill the same textboxes I am using to input data for update purposes.. thanks in advance to whoever might help me have a good day guys

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: I am new in using userforms can someone help.. thanks in advance

    Can you post a sample workbook with your userform and code in it?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: I am new in using userforms can someone help.. thanks in advance

    thanks for replying,, here is the file u can check,, sorry for the noob codes,, I'm just starting at using forms.. hope u can enlighten my problem thanks

    aaaaaa.xlsm

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Doing search and update in workbook with userform

    I have looked at your sample form and noticed that some of your code, the add-item code in particular, can be eliminated of you put the list in another worksheet in the same workbook and use that range for the combobox, which would shorten up your code a bit. Let me know if you'd like for me to change that for you. Also, I'm not quite understanding the Trim part of your code. Looking at what it is doing, the Trim part isn't needed, I don't think. I can change that part of the code as well to shorten it up a bit if you'd like.
    Now, onto what you really came here for. IF I understand correctly, you want another combobox where you select data from a particular column and have the info from the matching row display in your userform so that you can make changes/updates to it?

  5. #5
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: Doing search and update in workbook with userform

    sir gmr4ever1, since I am new to this, and have a little background in coding I only derive codes from forums and try to understand it as much as I can, thanks for the offer but I think I can only debug this codes the way I understand them, about the trim part, that it validates the form of blank entries,, cause I need those information to be filled up, like forcing the user to fill them up,

    And about my problem, Yes I want another combo box for column select criteria and search for values under that specific column and fill all textboxes accordingly,, I have updated the form will attached it here..

    And I found another problem if you don't mind, the data adding of the form doesn't block duplicate entries.. I would appreciate if it would be solved...

  6. #6
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: Doing search and update in workbook with userform

    DATA ENTRY.xlsm
    Here is the updated form

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Doing search and update in workbook with userform

    jhinruiz28,
    Just wanted to let you know that I haven't forgotten about you here. Do you still need help with this or have you made progress or resolved it?

  8. #8
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: Doing search and update in workbook with userform

    gmr4evr1

    thank you for not forgetting about me

    I have been in loops trying to solve this.. your assistance will be greatly appreciated :D

  9. #9
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Doing search and update in workbook with userform

    At this point I have something that I am about to implement with my UserForms. It's an "option" where the user double clicks any cell in a row and it opens the user form and populates all the information from that row in the appropriate text boxes and allows them to edit/update as needed. Does this sound like something that would be helpful to you?

  10. #10
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: Doing search and update in workbook with userform

    hmm.. it seems to be an interesting option..
    but I'm trying to limit the access of my users to just the userform alone..
    I think I won't be able to take that option sir..

    btw I have done the search option..
    filling-up the corresponding textboxes that is designated to a column in my database, but for a single criteria only..
    I can't figure out the combo box that can change my criteria column

  11. #11
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Doing search and update in workbook with userform

    The access can remain limited to the userform, they just have the option to double click a cell on the sheet, then the same userform opens with the info populated. The sheet can also be protected to keep them from making changes directly on the sheet.

    I'm not sure I follow about the combobox issue?

  12. #12
    Registered User
    Join Date
    10-28-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 2007
    Posts
    10

    Re: Doing search and update in workbook with userform

    oh I see.. can I take a look at it so I can educate myself further?

    hmm about the combobox..
    For example I have a search textbox, I only have a single criteria for that textbox,,
    what I am thinking about is changing that criteria thru the combobox

    Like, for Column 1 contains letters
    and Column 2 contains numbers,,

    the combobox will let me interchange criteria from numbers and letters..

+ 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. On Userform, how to put Search, Delete, Add, Update buttons
    By TSHEPO19811 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-07-2015, 10:38 AM
  2. Userform ADD/SEARCH/UPDATE Features
    By BARENTINEMATT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2015, 11:55 AM
  3. Get Userform with search and Update functions to work
    By aemden1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 12:18 PM
  4. Coding Search and Update Command Button in an UserForm
    By sottojeromey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 06:39 AM
  5. Userform to Search based on Unique ID update and save data in an exel sheet
    By Rosco90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 04:50 PM
  6. Search records from userform and update data list
    By craigw27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2013, 08:55 AM
  7. USERFORM - Call cell value from a different workbook and then update it with new value.
    By daren.beaney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2013, 11:29 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