CharlieT302
Instructor
Hi,
I am using the following expression in an unbound object on a form. I know my criteria has an incorrect syntax, but I am unclear as how to fix it.
=DSum("[purchase]","qry_Schedule",Format([deldate],"yyyy")=Format(Date(),"yyyy"))
I have also tried (among other things):
=DSum("[purchase]","qry_Schedule",Format([deldate],"yyyy")=#"&Format(Date(),"yyyy")&"#")
I basically wish to summarize the purchases only for the current year. How to fix?
I am using the following expression in an unbound object on a form. I know my criteria has an incorrect syntax, but I am unclear as how to fix it.
=DSum("[purchase]","qry_Schedule",Format([deldate],"yyyy")=Format(Date(),"yyyy"))
I have also tried (among other things):
=DSum("[purchase]","qry_Schedule",Format([deldate],"yyyy")=#"&Format(Date(),"yyyy")&"#")
I basically wish to summarize the purchases only for the current year. How to fix?