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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

double check an update query



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2008, 08:45 PM posted to microsoft.public.access.queries
JRough
external usenet poster
 
Posts: 44
Default double check an update query

I have a question about this update query before I run it:

UPDATE 2007_SUBMISSIONS INNER JOIN 2007_SUBMISSION_HISTORY ON
[2007_SUBMISSIONS].MEMBID = [2007_SUBMISSION_HISTORY].MembID SET
[2007_SUBMISSION_HISTORY].AMT_PAID = Round([2007_SUBMISSIONS].AMT_PAID,
2), [2007_SUBMISSION_HISTORY].SUB_TYPE = "update",
[2007_SUBMISSION_HISTORY].SUB_DATE = Date(),
[2007_SUBMISSION_HISTORY].AMT_SUBMITTED =
Round([2007_SUBMISSIONS].AMT_PAID-[2007_SUBMISSION_HISTORY].AMT_PAID,
2)
WHERE ((([2007_SUBMISSIONS].MEMBID) Not In (SELECT [MEMBID] FROM
[2007_I_04e_UPDATE_SUBMISSION_MEMBERS_Filter])));

What I think this query does is if a member is in the submission
history table and also not in the filter (assumption it is in
submission table) then
it changes the amt_paid in the submissions history table = amt_paid in
submissions - amt_paid in submissions history and it adds the
submission date of today and it rounds it before it subtracts.

Is that right?

thanks,
 




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 09:39 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.