Jan 17, 2004 #1 flycold Programmer Jan 17, 2004 15 GB hi i have one table on microsoft access database. i am running a query on that table which produces the required results. what i need to do is then (upon pressing a command button) delete the results from the main table any help would be appriciated spider
hi i have one table on microsoft access database. i am running a query on that table which produces the required results. what i need to do is then (upon pressing a command button) delete the results from the main table any help would be appriciated spider
Jan 17, 2004 #2 ZmrAbdulla Technical User Apr 22, 2003 4,364 AE Hi, Go to the design view of the Query and change it to "Delete Query" Query > DeleteQuery You have to put criteria for the field. You can use the same command button. Up on clicking it you will get po up message to confirm the action. Hope this help Zameer Abdulla http://www.geocities.com/zameerabd/http://www.mtkhoory.com Upvote 0 Downvote
Hi, Go to the design view of the Query and change it to "Delete Query" Query > DeleteQuery You have to put criteria for the field. You can use the same command button. Up on clicking it you will get po up message to confirm the action. Hope this help Zameer Abdulla http://www.geocities.com/zameerabd/http://www.mtkhoory.com
Jan 17, 2004 Thread starter #3 flycold Programmer Jan 17, 2004 15 GB i have tried the delete query already. it deletes the whole of the query which i would like to use again in the future. all i want is to delete the records brought up by the query. flycold Upvote 0 Downvote
i have tried the delete query already. it deletes the whole of the query which i would like to use again in the future. all i want is to delete the records brought up by the query. flycold
Jan 17, 2004 #4 BNPMike Technical User Sep 17, 2001 1,818 GB You don't delete the query. You turn it into delete query. It's one of the options in the Query (QBE) screen. Upvote 0 Downvote
You don't delete the query. You turn it into delete query. It's one of the options in the Query (QBE) screen.
Jan 17, 2004 Thread starter #5 flycold Programmer Jan 17, 2004 15 GB either way it will only delete the records pulled up by the query. i want it to delete the records that are pulled up in the main table. flycold Upvote 0 Downvote
either way it will only delete the records pulled up by the query. i want it to delete the records that are pulled up in the main table. flycold
Jan 17, 2004 #6 BNPMike Technical User Sep 17, 2001 1,818 GB The way Access works is if you delete records in a query then you've deleted the records in the source table(s). Whatever your query is, look at the SQL. If it does not contain the word DELETE then you haven't got a delete query. Upvote 0 Downvote
The way Access works is if you delete records in a query then you've deleted the records in the source table(s). Whatever your query is, look at the SQL. If it does not contain the word DELETE then you haven't got a delete query.
Jan 22, 2004 Thread starter #7 flycold Programmer Jan 17, 2004 15 GB o.k i have created a delete query which has the criteria >01/01/2001 under the date field i have then created a command button on the form and created a macro to go with this, what do i need under the action? i previously had delete object hence it was deleting my whole query thanks flycold Upvote 0 Downvote
o.k i have created a delete query which has the criteria >01/01/2001 under the date field i have then created a command button on the form and created a macro to go with this, what do i need under the action? i previously had delete object hence it was deleting my whole query thanks flycold
Jan 22, 2004 #8 BNPMike Technical User Sep 17, 2001 1,818 GB Just looking at the drop-down of actions it looks like OpenQuery Upvote 0 Downvote