Help with Form

bladeuk

Board Regular
Joined
Apr 6, 2005
Messages
178
Hi Guys,

I have a form where I want to be able to enter a reference number (free text) and then run a report detailing any entries in my main table that match whatever I enter.

I've done sub forms to select agent ID's from a combo box etc. and they work fine, how can I get it to find whatever I enter as the search requirements?

for example - field will have a numeric reference of 8 digits. I want to enter this 8 digit reference , click a button and have a report display all records that match this reference. Note - it could be many times and is not the record ID, just an entry in a field.

Does this make sense?

Thanks in advance - no expert in code by the way :-)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
How about a query on the table and have the criteria for the field you are trying to search refer to the textbox input? The criteria would look something like this:
Code:
=[Forms]![YourFormName]![txtboxName]
And then add a command button that would trigger the query via Macro when clicked.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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