Question : Access 2007 Use regular expressions to find ###.#

Hey, I am not a regular access user but need to do some data cleansing and want to find all the values in afield that equal 3 numbers a period and a number ie. ###.#
I know how to use functions just not sure how to create this one. I found lot of examples on the web but they al;l removed the period as well. Can anyone help?

Answer : Access 2007 Use regular expressions to find ###.#

NGTLD,

OK, then you would want to add the UDF RegExpFind from my article to a regular module in your VBA project.

You could then use it in a query like this:

SELECT YourColumn, RegExpFind([YourColumn], "\d+(\.\d+)?", 1) AS Whatever
FROM YourTable

or:

UPDATE YourTable
SET YourColumn = RegExpFind([YourColumn], "\d+(\.\d+)?", 1)

Patrick
Random Solutions  
 
programming4us programming4us