Access 2000 / more characters to be eliminated

A

Abay

Hello again .. this time I need to eliminate all characters (in a field) up
to and including the first "- " (dash, space), or "-" (dash no space
afterwards)

Any help would be much appreciated as usual.

Thanks in advance

Abay
 
J

John W. Vinson

Hello again .. this time I need to eliminate all characters (in a field) up
to and including the first "- " (dash, space), or "-" (dash no space
afterwards)

Back up your database just in case; then run an Update query updating
[Field] to

Trim(Mid([Field], InStr([Field], "-") + 1)

using a criterion of

LIKE "*-*"

to limit the update to those records where the field does contain a
hyphen.

John W. Vinson [MVP]
 
A

Abay

Any thanks, & much apprciated.. will do that ..

Abay
John W. Vinson said:
Hello again .. this time I need to eliminate all characters (in a field)
up
to and including the first "- " (dash, space), or "-" (dash no space
afterwards)

Back up your database just in case; then run an Update query updating
[Field] to

Trim(Mid([Field], InStr([Field], "-") + 1)

using a criterion of

LIKE "*-*"

to limit the update to those records where the field does contain a
hyphen.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top