Use Search Parameters To Find Content Contained Within A Field

Bigbudgie

New Member
Joined
Mar 10, 2016
Messages
2
Hello, I am new to the forum and hoping somebody could help me with a problem I am having (been driving me mad!)

I have created a table in access 2016, and have a text field that I have populated with Postcode abbreviations separated by" , " - I have created a search parameter and would like it to display a record if that part of the postcode is included in that field; e.g within the field is: AB, DE, FY, YO, and the search parameter is " YO"
I have tried various solution and tried to find the answer on the internet without success, Could someone please help, I am sure it is very simple but to a man of limited ability very frustrating,

many thanks
Bigbudgie
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the Board!

You can use the InStr function, and if it returns any number greater than zero, then it has found the value.
See here for examples: MS Access: Instr Function

It is a bit curious as to why you would have multiple postal codes in a single field. It doesn't sound like a Normalized design (and that is usually something you want to strive for in Access).
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,190
Members
451,752
Latest member
majbizzaki

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