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  

Access Querry



 
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2007, 09:42 PM posted to microsoft.public.access.queries
Andy
external usenet poster
 
Posts: 941
Default Access Querry

I have Table that has fields Such as
Date,Item#, SubCode#,ToDay'sQty, UoToDateQty. I have Records For # days.
Jan 21 1 2 500 500
jan 22 1 3 100 100
jan 23 1 2 300 800 What Querry Should I
wright so I get Exactely Like above Table? I need to get UpToDateQty for
Item #1 and SubCode#2 on Jan 23 To be 800.

Thanks

Andy
  #2  
Old January 22nd, 2007, 09:46 PM posted to microsoft.public.access.queries
Rick B
external usenet poster
 
Posts: 749
Default Access Querry

Looks like you are trying to store a calculated value in your table. You
seem to be creating a running total and storing it. That violates
normalized database design.

Instead, store all the data you listed (except the current Qty) and
calculate it when you need it.

--
Rick B



"Andy" wrote in message
...
I have Table that has fields Such as
Date,Item#, SubCode#,ToDay'sQty, UoToDateQty. I have Records For # days.
Jan 21 1 2 500 500
jan 22 1 3 100 100
jan 23 1 2 300 800 What Querry Should I
wright so I get Exactely Like above Table? I need to get UpToDateQty for
Item #1 and SubCode#2 on Jan 23 To be 800.

Thanks

Andy



  #3  
Old January 22nd, 2007, 10:47 PM posted to microsoft.public.access.queries
Andy
external usenet poster
 
Posts: 941
Default Access Querry

Thanks Rick B

Running Total doesn't work. it make Total of All Items And SubCode .

My requirement is to find sum Of all Todays Qty on privioud date and add it
to ToDaysDate Qty and that total should return in UpToDateQty Field
For Each Item3 and SubCode#

"Rick B" wrote:

Looks like you are trying to store a calculated value in your table. You
seem to be creating a running total and storing it. That violates
normalized database design.

Instead, store all the data you listed (except the current Qty) and
calculate it when you need it.

--
Rick B



"Andy" wrote in message
...
I have Table that has fields Such as
Date,Item#, SubCode#,ToDay'sQty, UoToDateQty. I have Records For # days.
Jan 21 1 2 500 500
jan 22 1 3 100 100
jan 23 1 2 300 800 What Querry Should I
wright so I get Exactely Like above Table? I need to get UpToDateQty for
Item #1 and SubCode#2 on Jan 23 To be 800.

Thanks

Andy




  #4  
Old January 23rd, 2007, 04:27 PM posted to microsoft.public.access.queries
Andy
external usenet poster
 
Posts: 941
Default Access Querry



"Andy" wrote:

I have Table that has fields Such as Except UpToDateQty Field
Date,Item#, SubCode#,ToDay'sQty, UoToDateQty. I have Records For # days.
Jan 21 1 2 500 500
jan 22 1 3 100 100
jan 23 1 2 300 800 What Querry Should I
wright so I get Exactely Like above Table? I need to get UpToDateQty for
Each Item #1 and SubCode#2 as shown above( on Jan 23 To be 800. See 100 is not added)

UpToDateQty is calculated field and I need to see my report look like
above Table

Thanks

Andy

 




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 12:35 AM.


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