468,101 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,101 developers. It's quick & easy.

calculating month end returns in expressions???

db
I am trying to build a db in Access2000 that will allow me to
calculate month end returns on investments. I am about to try VBA for
the first time, but wonder if I can do what I want by using
expressions in a query. Here's the problem...how do I make an
expression for a record that pulls another record needed to complete
the expression. IE, I am in the record for last months market value
and need to access the prior months market value to do the calcuation.
I am probably missing something really easy, but any help would be
appreciated. Is there a better way? Thanks!
Nov 12 '05 #1
1 4650
To get the last day of last month, subtract the day of the current month,
e.g.:
Date() - Day(Date())

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"db" <db******@mail.com> wrote in message
news:7b**************************@posting.google.c om...
I am trying to build a db in Access2000 that will allow me to
calculate month end returns on investments. I am about to try VBA for
the first time, but wonder if I can do what I want by using
expressions in a query. Here's the problem...how do I make an
expression for a record that pulls another record needed to complete
the expression. IE, I am in the record for last months market value
and need to access the prior months market value to do the calcuation.
I am probably missing something really easy, but any help would be
appreciated. Is there a better way? Thanks!

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by cg_news | last post: by
1 post views Thread by jlm | last post: by
3 posts views Thread by Paul Mendez | last post: by
2 posts views Thread by Gustavo G. Rondina | last post: by
6 posts views Thread by Ante Perkovic | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.