incagold
Programmer
- Mar 21, 2003
- 54
Hi,
I am a relative newbie to MS ACESSS and I am having a terrible time trying to use DSUM in a SQL Statement to update a table. No matter what I do my answer gives me 0's for result. I am sure it is my newness and the answer is probably quite simple. But I am struggling.
This is the code:
UPDATE SUMMARY SET SN4_BE = DSum('BOE','SUMMARY_TMP','SER_NO'='SN4'), SN4_PO = DSum('O_CST','SUMMARY_TMP','SER_NO'='SN4'), SN4_RC = DSum('A_CST','SUMMARY_TMP','SER_NO'='SN4'), SN4_PF = DSum('PJ_FNL_CST','SUMMARY_TMP','SER_NO'='SN4');
SUMMARY is the final table and SUMMARY_TMP holds the data which needs to be evaluated.
Any suggestions and help would be sincerely appreciated.
BEF
I am a relative newbie to MS ACESSS and I am having a terrible time trying to use DSUM in a SQL Statement to update a table. No matter what I do my answer gives me 0's for result. I am sure it is my newness and the answer is probably quite simple. But I am struggling.
This is the code:
UPDATE SUMMARY SET SN4_BE = DSum('BOE','SUMMARY_TMP','SER_NO'='SN4'), SN4_PO = DSum('O_CST','SUMMARY_TMP','SER_NO'='SN4'), SN4_RC = DSum('A_CST','SUMMARY_TMP','SER_NO'='SN4'), SN4_PF = DSum('PJ_FNL_CST','SUMMARY_TMP','SER_NO'='SN4');
SUMMARY is the final table and SUMMARY_TMP holds the data which needs to be evaluated.
Any suggestions and help would be sincerely appreciated.
BEF