Queries (1 Viewer)

S

Shukri

Guest
How do I create a query deleting all files that begin with a specific lrtter?
 

raskew

AWF VIP
Local time
Today, 08:27
Joined
Jun 2, 2001
Messages
2,734
When you say "...all files", do you really mean "...all records"?
 

raskew

AWF VIP
Local time
Today, 08:27
Joined
Jun 2, 2001
Messages
2,734
Assuming that your intention is to delete records, not files, here're a couple of
examples that you can try in Northwind:

This one returns all Employees whose last name begins with "D":

SELECT Employees.*, Employees.LastName
FROM Employees
WHERE (((Employees.LastName) Like "D*"));

You could then turn this into a Delete query (don't actually run it) with this:

DELETE Employees.*, Employees.LastName
FROM Employees
WHERE (((Employees.LastName) Like "D*"));
 

Users who are viewing this thread

Top Bottom