L
Lewis Brunton
Hi,
I have a table worth of data with Surnames in it, and some of the surnames
are suffixed by various endings such as:
Smith(VERIFIER)
Jones(MODEL)
etc etc
I can create an update and replace query that removes the specific ending,
e.g.:
UPDATE AddressDetails SET AddressDetails.surname =
Replace([surname],"(MODEL)","")
WHERE (((AddressDetails.surname) Is Not Null));
But I would much rather have a query that removes any ending with brackets.
I have tried replacing the query with:
UPDATE AddressDetails SET AddressDetails.surname = Replace([surname],"(*)","")
WHERE (((AddressDetails.surname) Is Not Null));
But the * wildcard doesn't seem to work in this context.
Can anyone help?
thanks
Lewis Bruntin
I have a table worth of data with Surnames in it, and some of the surnames
are suffixed by various endings such as:
Smith(VERIFIER)
Jones(MODEL)
etc etc
I can create an update and replace query that removes the specific ending,
e.g.:
UPDATE AddressDetails SET AddressDetails.surname =
Replace([surname],"(MODEL)","")
WHERE (((AddressDetails.surname) Is Not Null));
But I would much rather have a query that removes any ending with brackets.
I have tried replacing the query with:
UPDATE AddressDetails SET AddressDetails.surname = Replace([surname],"(*)","")
WHERE (((AddressDetails.surname) Is Not Null));
But the * wildcard doesn't seem to work in this context.
Can anyone help?
thanks
Lewis Bruntin