Find, INSTR

imfarhan

Board Regular
Joined
Jan 29, 2010
Messages
123
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

In an Access table, I have a field called "CaseNote" the type of field is text.
This field meant to keep only Numeric values but some how I have found some values keep String values like "A", "M" or others , normally in starting used as prefix Example
M234343
But some time in middle of number like 323X324.
Is there any way I can using any SQL function to check how many rows keep Alpha values i.e. A to Z any postition in an string or find any value keep other values than Numeric.

The table keeps around 55K rows and I can check a single row or filter becaue each rows normally are different


Many thanks
Farhan
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
In a query, put this expression:

HasText: IIf([CaseNote] Like "*[A-Z]*",1,0)

Place 1 in the Criteria to show all strings containing one or more letters. Tested with 20K rows.

Denis
 
Upvote 0

Forum statistics

Threads
1,215,579
Messages
6,125,646
Members
449,245
Latest member
PatrickL

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