+ Reply to Thread
Results 1 to 3 of 3

userform to search excel database

  1. #1
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    115

    userform to search excel database

    Hi,

    Iīve created a Userforum with several txtboxes, then i added a cmdbutton, that when clicked, transfers all the data inserted in to a sheet named "DataBase".

    Now i need to create another userform to search the data inserted.

    For example: I've inserted data regarding to a client with the serial number 00555 three months ago. My new userform needs to be able to locate the data inserted in the "DataBase" sheet by searching the serial number.

    I just canīt create the code.

    Can anyone help me?

    Thanks

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    re: userform to search excel database

    Hi ncaravela
    This is the code from the VBA help files
    Please Login or Register  to view this content.
    you can use it to find a data base value in a text box.Then off set to populate the details
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: userform to search excel database

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    I've edited the title for you

    Take a look at the databaseform example here

    http://www.excel-it.com/vba_examples.htm
    Last edited by royUK; 05-06-2010 at 07:43 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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