Solved

Delete Query to Delete all records where the name starts with T

Posted on 2007-11-29
4
398 Views
Last Modified: 2010-04-21
I am trying to create a Delete Query to delete all records where the name starts with T. I am not sure what to put in the criteria so that all records say in the name field are delete if the first letter is a T. I know this is simple but im not getting it.
0
Comment
Question by:culwatrnca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 20 total points
ID: 20380300
You can use this:

Like "T" & "*"

mx
0
 
LVL 19

Expert Comment

by:Limbeck
ID: 20380301
hi, always make a backup before using a delete qry:

DELETE yourtable.*
FROM yourtable
WHERE Left([yourfield],1)="T";
0
 

Author Closing Comment

by:culwatrnca
ID: 31411868
awsome... thank you and thank you for the quick reply...
0
 
LVL 75
ID: 20380339
You are welcome.  Note that Limbeck's solution is an equivalent way of doing the same thing.

mx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question