Solved

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

Posted on 2007-11-29
4
378 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
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now