T
Thorfinn
Can anyone help with the following:
These are part of a daily calory tracking application.
The form codes below work OK on MS-Access 2003, and the literature (help
files, etc.) suggest that they should work with MS-Access 2007.
=DSum("[IN]","CALORIES","DATE=Date()")
Intended to add intake calories for a specific day.
=DSum("[OUT]","CALORIES","DATE=Date()")
Intended to add output calories for a specific day.
=DSum("[IN]","CALORIES"," DATE Between DATE() And Date()-7")
Intended to add intake calories for the last 7 days
=DSum("[OUT]","CALORIES"," DATE Between DATE() And Date()-7")
Intended to add ouput calories for the last 7 days
=DSum("[IN]","CALORIES"," DATE Between DATE() And Date()-365")
Intended to add intake calories for the last 365 days
=DSum("[OUT]","CALORIES"," DATE Between DATE() And Date()-365")
Intended to add output calories for the last 365 days
The rest of the application, including other expressions, works OK. For
some reason MS-Access 2007 seems to want something different.
Any help appreciated; Thanks
These are part of a daily calory tracking application.
The form codes below work OK on MS-Access 2003, and the literature (help
files, etc.) suggest that they should work with MS-Access 2007.
=DSum("[IN]","CALORIES","DATE=Date()")
Intended to add intake calories for a specific day.
=DSum("[OUT]","CALORIES","DATE=Date()")
Intended to add output calories for a specific day.
=DSum("[IN]","CALORIES"," DATE Between DATE() And Date()-7")
Intended to add intake calories for the last 7 days
=DSum("[OUT]","CALORIES"," DATE Between DATE() And Date()-7")
Intended to add ouput calories for the last 7 days
=DSum("[IN]","CALORIES"," DATE Between DATE() And Date()-365")
Intended to add intake calories for the last 365 days
=DSum("[OUT]","CALORIES"," DATE Between DATE() And Date()-365")
Intended to add output calories for the last 365 days
The rest of the application, including other expressions, works OK. For
some reason MS-Access 2007 seems to want something different.
Any help appreciated; Thanks