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.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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!!!
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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
Back
Top