in a query, how do i delete records that description start w/ "s"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In a query, how do i delete records that the description begin with the
letter "s"?
 
Hi Mystic,

If you really want to delete them, you could use a delete query like this:

delete * from TABLENAME where ucase(left(FIELDNAME, 1)) = "S"

if you just don't want to see them in your query results, just have
something like this:

select * from TABLENAME where ucase(left(FIELDNAME, 1)) <> "S"

Hope that helps.

Damian.
 
Mystic said:
In a query, how do i delete records that the description begin with the
letter "s"?

DELETE *
FROM tablename
WHERE ([description] LIKE "s*");
 

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

Back
Top