UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help with DSum statement    
 
   
ChrisUwins
post Sep 30 2004, 05:52 AM
Post #1

New Member
Posts: 12



Hi all

Need a reply ASAP (today) if poss - just need a quick DSum statement help:

I have a table [ARCHIVE] with lots of order infos in. In this table, there is a
field called [Status]. Primary key is [MaximoRef] (The "ID" of the order)

In another table, linked one to many, I have materials info.
[MaximoRef]
[Supplier]
[InvoiceNo]
[InvValue]

What I need to do is
DSum("[InvValue]","[MATERIALS]",........

For the ........ it needs to refer back to [ARCHIVE], find the [MaximoRef], see if
[Status] = "Completed" for this record, and DSum the [InvValue] from [MATERIALS]
it if it is.

Hope this makes sense!
Go to the top of the page
 
+
Larry Larsen
post Sep 30 2004, 06:11 AM
Post #2

UA Editor + Utterly Certified
Posts: 22,722
From: Melton Mowbray,Leicestershire (U.K)



Hi
Post up you (2) tables and we'll see what we can do..
(Alway's easier with data/tables)
(IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+
ChrisUwins
post Sep 30 2004, 06:32 AM
Post #3

New Member
Posts: 12



Ok

I sent an email to your email address mate with two (very small) jpegs screengrab
of my two tables.

Email says more

thanks for your help
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 07:24 AM