Cotton
asked on
Query to extract numbers from text string
Hi Experts,
Need a bit of quick help.
I have a table with [ID], [Date], [ClientID],[reference]
Some of the records have a series of numbers in the [reference] field eg. 10215, 10555, 10331
I'm want to make a query to create a new table with these numbers extracted with their own record each, but I need help of on the extraction part :)
Thanks in advance
Need a bit of quick help.
I have a table with [ID], [Date], [ClientID],[reference]
Some of the records have a series of numbers in the [reference] field eg. 10215, 10555, 10331
I'm want to make a query to create a new table with these numbers extracted with their own record each, but I need help of on the extraction part :)
Thanks in advance
also you can use the functions left,mid, right and instr, instrrev depending on the format of the string
post sample data.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Super quick response.
For clarificaion:
The [Reference] data in each field is generally "12345", but the ones I need to extract are "10155, 10211, 10255" and ignore the records with text in the record.
I'm just going to try out your function.
Cheers
For clarificaion:
The [Reference] data in each field is generally "12345", but the ones I need to extract are "10155, 10211, 10255" and ignore the records with text in the record.
I'm just going to try out your function.
Cheers
if the numbers are located in front 12345abj
val("12345abj") will give you 12345
if anywhere else , you will need a function