Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / February 2006

Tip: Looking for answers? Try searching our database.

Deleting a record from a Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christine - 24 Feb 2006 21:38 GMT
Hi
I'm very new to Access and I was wondering how do you delete a record from a
query result? Every time I try to do so it gives me the following error
"Deleting data in a linked table is not supported by this ISAM" . I've run a
Query to get all records that contain a segment of text, but now I need to
further "prune" the records.  I can't do another filter or query as there are
no particular words that I want to keep or get rid of.  I need to evaluate
each record one by one.  I know I can save a query, but can I save the query
results as a table and then further manipulate them?
Thank-you very much in advance for your help
AlienzDDS - 24 Feb 2006 22:37 GMT
I don't understand the first part of your problem but you can create a table
from your query.  You need to change your 'select query' to an 'append
query'.  When you click Run ! it will ask you if you want to append to an
existing table or a new one.  Let me know if you need more help with this.

Alison

> Hi
> I'm very new to Access and I was wondering how do you delete a record from a
[quoted text clipped - 6 lines]
> results as a table and then further manipulate them?
> Thank-you very much in advance for your help
Ken Sheridan - 25 Feb 2006 00:29 GMT
From the error description it sounds like you might be linking to non-Access
data such as Excel or a text file, in which case you won't be able to delete
rows in the source from within Access.  One thing you could do is 'mark' the
records as deleted, but not actually delete them.  To do this create a local
table with a column or columns which match the primary key of the linked
table (or any column or combination of columns which identify a row
uniquely).  Make sure these  column or columns in the new table are defined
as its primary key.  Give this other table one more column of Boolean
(Yes/No) data type called something like Deleted.  Make its Display Control a
check box in its properties sheet in table design.

You can then join your query to this table in another query in which you
return all columns from the existing table and just the deleted column from
the new table.  You can then check those you want to mark as deleted.  When
you want to see the rows from the existing table without those marked for
deleted you just join the existing table to the new table in a query and set
the criterion for the Deleted column to False.

Ken Sheridan
Stafford, England

> Hi
> I'm very new to Access and I was wondering how do you delete a record from a
[quoted text clipped - 6 lines]
> results as a table and then further manipulate them?
> Thank-you very much in advance for your help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.