I want to calculate Product Prices based on Dateofpurchase by ears...
I'm Using Expression:
=DSum("Price","DATA","Dateofpurchase >=#" & Format([Pdate],"mm/dd/yyyy") & "#")
([Price] -In this field are stored the product prices, [DATA] This is main table, [Dateofpurchase] In this field is stored the date/time of the product, when it was purchased, [Pdate] - This is unbound combo-box in which i have the values)
In Pdata combobox I gave values of years: 1/1/2011, 1/1/2010, 1/1/2009 and AllYears
If Select 1/1/2009 - It Must Show Only the Sum of the products which was bought only in that year (2009)
Please
If Select 1/1/2010 - "The Same" (2010)
If Select 1/1/2011 - "The Same" (2011)
And If Select AllYears It Must Show The Sum of products which was bought from 2009- to current date
To admin or moderator: Please I have a mistake in the title of the thread "Sum Product Prices Based on DateofPurchase By Ears" Change it to: Sum Product Prices Based on DateofPurchase By Years" I misspelled wrote Ears instead of Years
Thank you in Advanced
I'm Using Expression:
=DSum("Price","DATA","Dateofpurchase >=#" & Format([Pdate],"mm/dd/yyyy") & "#")
([Price] -In this field are stored the product prices, [DATA] This is main table, [Dateofpurchase] In this field is stored the date/time of the product, when it was purchased, [Pdate] - This is unbound combo-box in which i have the values)
In Pdata combobox I gave values of years: 1/1/2011, 1/1/2010, 1/1/2009 and AllYears
If Select 1/1/2009 - It Must Show Only the Sum of the products which was bought only in that year (2009)
Please
If Select 1/1/2010 - "The Same" (2010)
If Select 1/1/2011 - "The Same" (2011)
And If Select AllYears It Must Show The Sum of products which was bought from 2009- to current date
To admin or moderator: Please I have a mistake in the title of the thread "Sum Product Prices Based on DateofPurchase By Ears" Change it to: Sum Product Prices Based on DateofPurchase By Years" I misspelled wrote Ears instead of Years

Thank you in Advanced
Last edited: