G
Guest
I have been having trouble breaking this function for my query. I have 2
columns, date and amount. I need to sum the amount for one year for day one.
I then need to add to this total each day going forward, with the amount from
one year forward. I keep getting an error message in each line, not sure if
it is syntax errors.
I will post the function code below:
OneYrOut: DSum("[amount]","[OneYearOut]","[O/N Date]>=#" & [O/N Date] & "#
AND [O/N Date]<#" & DateSerial(Year([O/N Date])+1,Month([O/N Date]),Day([O/N
Date]) & "#"))
Any help is greatly appreciated- thanks
columns, date and amount. I need to sum the amount for one year for day one.
I then need to add to this total each day going forward, with the amount from
one year forward. I keep getting an error message in each line, not sure if
it is syntax errors.
I will post the function code below:
OneYrOut: DSum("[amount]","[OneYearOut]","[O/N Date]>=#" & [O/N Date] & "#
AND [O/N Date]<#" & DateSerial(Year([O/N Date])+1,Month([O/N Date]),Day([O/N
Date]) & "#"))
Any help is greatly appreciated- thanks