A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using the Update query



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 05:48 PM posted to microsoft.public.access
DJ in Dallas
external usenet poster
 
Posts: 5
Default Using the Update query

I am using the update query to move records from one table to another table.
How do I delete the record in the originating table once the query is
finished? I am assigning licenses to people and want tp remove the record in
the In Stock table.

Thanks for any help you can give.
  #2  
Old March 18th, 2010, 06:10 PM posted to microsoft.public.access
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Using the Update query

It will have to be a two step process. You'll need a second query with the
same criteria to delete the records.

It's almost always a bad idea to move data from one table to another. To
find out what is in both tables, you'll need a union query which are slow and
inefficient.

You are much better off putting a Yes/No field named something like
Processed in the first table and update it to Yes when you no longer want to
see these records at times. Your select query would have criteria of No in
that field to fine all the records not processed.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"DJ in Dallas" wrote:

I am using the update query to move records from one table to another table.
How do I delete the record in the originating table once the query is
finished? I am assigning licenses to people and want tp remove the record in
the In Stock table.

Thanks for any help you can give.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.