+ Reply to Thread
Results 1 to 16 of 16

Search Form

Hybrid View

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Search Form

    Hi.

    1 - I wish it were like a kind of research as well, where I typed the name and it will automatically appear for me in this combo box.
    2 - When the name sought is found, I would click on it and all your data automatically appear in the form.
    3 - How to make a statement that there is no name repeated in the combo box?
    4 - How do I get the user only has the vision of form and not the worksheet?
    I thank you all!
    Attached Files Attached Files
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    marreco,

    What is the command button that you use for the "Search".
    As for the Combobox for the "Name" when you start to type the name it will scroll to the nearest word and you can now use the dropdown for the name.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    Hi.Charles
    What is the command button that you use for the "Search".
    I wish that after typing the name in the combo box, click to two, the name in the combo box.

    After that all other controls would be filled.

    but if you can not do as well as the power had been done to me great, thanks!

    As for the Combobox for the "Name" when you start to type the name it will scroll to the nearest word and you can now use the dropdown for the name.
    would be exactly that way!

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    marreco,

    Another problem. You are loading the combobox from the "Customer" sheet. If you enter the name for the search. How do you know if it found the correct record?
    The find function will find the first name in the file.
    Also, After you enter the name "What button do you click" to start the find? Are you wanting to double click on the name?

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    Hi.
    You are loading the combobox from the "Customer" sheet. If you enter the name for the search. How do you know if it found the correct record?
    Consider that I have unique information on the worksheet

    Are you wanting to double click on the name?
    Yes!!

    thank you!!

  6. #6
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    Hi,

    Then you get the fist record and then click another button to goto the next record.
    What button would you use?
    Consider that I have unique information on the worksheet

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    I do not understand very well but for this case would be the command button called "Avançar" . which is equal to the "next" in the case of English

  8. #8
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    Thanks, I'll try to put something together. But, may not get it done this PM.

  9. #9
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    Hi,

    I have some code worked out.
    You will need to finish adding the code for the userform.
    I have in place code for "Next" and "Previous"
    I do not have code for "Duplicate" names that are in the "Customers" sheet.
    Look at the codes for the combobox and the Next and Previous. You will see a pattern as to how you need to finish them.
    You can click the "Clients" and it will show the userform.
    Will be gone tomorrow, but if necessary will pick up on Tuesday.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    When you close the form is experiencing an error.

    Run-time Error '91 ':
    The object variable or block variable 'with' not defined

  11. #11
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    Hi,

    Go to the code for the form "Initialize" and remove the ".Show" that should take care of the error.
    Will be gone the rest of today.

  12. #12
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    part of the error was right now, thank you!

  13. #13
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    Hi,

    Just returned. Will look at your project tomorrow for updates. Were you able to add the missing part of the code for the userform?

  14. #14
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    Yes, but there are still some things to add.

    thanks

  15. #15
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Search Form

    marreco,

    Hi I added code to load the userform combo with out duplicates. Also I removed the code for "initialize".
    I have the new code in module.
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Search Form

    Thank you!!! Charles.

    was very good!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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