Using the same form to search or perform data entry

rmccafferty

Board Regular
Joined
Jul 16, 2009
Messages
60
I have a data input form that is very straight-forward.

I would like the user to be able to enter a name in the same form and be able to look up to see if there is already a record for that name. Is there an easy way to do this?

Trying to think this through, it is possible there will be more than one record for that name. That is, the same person may have had more than one "transaction" in the past. Seeing all records for the name being searched for, with several fields showing in the result of the search, would surely be helpful. (By additional fields, I am thinking the date of the "transaction", a transaction number, something that would let the user pick which existing record they want to see/edit.

And, thinking out loud, so to speak, if they are unsure whether a relevant record exists, once the user sees the options of existing records to select from, I would think that they need the option to either select an existing record to see/edit, or to begin a new record. And, of course, if there are aspects that I am not thinking of, I am open to any and all relevant advice.

I have some experience in VBA but am by no means an expert in it.

Thank you
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,203,071
Messages
6,053,375
Members
444,658
Latest member
lhollingsworth

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