Adding a Search Function to database

yabloni

New Member
Joined
Feb 7, 2011
Messages
3
Hi,

I am working on creating an electronic client database. It is a very simple design: for every client, a single form is completed with their information.

However, what I am looking to do is to add a function that allows me to search for specific records based on some criteria (e.g. last name, client id...).

For example, a new form called 'SearchForm' would have a field which I could type the criteria in and then with a click of a button it pulls up that client's information form. What I would like is some help with the VBA code for this, I am fairly new to VBA but willing to learn.

Your help is appreciated.
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

yabloni

New Member
Joined
Feb 7, 2011
Messages
3
Thank you very much that video definitely got me started on the right path.

My ultimate goal was to have a form open up displaying the client record that the user searched for.

However, I've managed to deal with that by adding another button that allows the user to open a specific client record by inputting the unique ID (the unique id is found by using the search from the video).

Thanks again!!!
 

Watch MrExcel Video

Forum statistics

Threads
1,127,316
Messages
5,623,958
Members
416,002
Latest member
t10k14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top