Re: Delete records containing certain info
- From: aMack <aMack@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 13:06:03 -0700
I tried what you said and it worked as a select query but I get an error
after changing it to a Delete query and executing.
The error reads: "cannot delete specified table"
I am trying to delete all records in one table that have the same ref number
in a second table.
The table which contains the reocrds to be deleted has a many to one
relationship with the "criteria" table.
What am I doing wrong?
Thanks
--
A MACKENZIE, CMA, MBA
"Duane Hookom" wrote:
Create a query that selects the records that you want to delete. Then switch.
it to a delete query (find this in the menus) and make sure you have the "*"
in the query grid. You should always view the datasheet prior to running a
delete query so you can confirm the appropriate records will be deleted.
--
Duane Hookom
MS Access MVP
--
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:353A3F6E-F433-43EF-9A66-4C22DA7AB0A3@xxxxxxxxxxxxxxxx
Duane,
I am fairly new to access and dont know how to set up delete queries. Can
you give explain in more detail pls?
Thanks
George
"Duane Hookom" wrote:
That's kinda how delete queries work. You can set criteria using "Like "
to
match text within a field.
--
Duane Hookom
MS Access MVP
--
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:70B4D442-99D4-4F7F-995F-639997CF0EB7@xxxxxxxxxxxxxxxx
Is it possible to delete whole records (rows) in a query or table that
contains certain "text" in a specified field?
Thanks
George
- Prev by Date: Re: Rank Values inside Query
- Next by Date: Re: if access query has no records, output "no records found"
- Previous by thread: Re: Query help...PLEASE
- Next by thread: Combining three queries into one
- Index(es):
Relevant Pages
|