M
Matthew DeAngelis
Hi everyone,
I am migrating an existing, badly designed database to a shiny new,
hopefully better designed one, so you'll likely see me here a lot in
the next couple of months.
One of the problems I am trying to solve is that every time a new deal
is logged, the company information is reinput with a (1), (2), (3),
etc. Once I have linked all of the deals to one company, I will want
to trim these numbers off of the end. Since there are almost two
thousand records, I would rather not do this by hand.
I was toying with the Replace function, but I am pretty new to using
these. I built the Update Query in Design View and inserted the
function into the "Update To" field. Here is what I have:
UPDATE [tbl: Data - Companies] SET [tbl: Data - Companies].Company =
Replace([tbl: Data - Companies]![Company],"Like (*)","")
WITH OWNERACCESS OPTION;
The query runs just fine, except that the (numbers) are still there,
and the data appears entirely unchanged despite the warning that I will
be updating every record.
What am I doing wrong?
Thanks,
Matt
I am migrating an existing, badly designed database to a shiny new,
hopefully better designed one, so you'll likely see me here a lot in
the next couple of months.
One of the problems I am trying to solve is that every time a new deal
is logged, the company information is reinput with a (1), (2), (3),
etc. Once I have linked all of the deals to one company, I will want
to trim these numbers off of the end. Since there are almost two
thousand records, I would rather not do this by hand.
I was toying with the Replace function, but I am pretty new to using
these. I built the Update Query in Design View and inserted the
function into the "Update To" field. Here is what I have:
UPDATE [tbl: Data - Companies] SET [tbl: Data - Companies].Company =
Replace([tbl: Data - Companies]![Company],"Like (*)","")
WITH OWNERACCESS OPTION;
The query runs just fine, except that the (numbers) are still there,
and the data appears entirely unchanged despite the warning that I will
be updating every record.
What am I doing wrong?
Thanks,
Matt