Connecting Tech Pros Worldwide Help | Site Map

calculating month end returns in expressions???

db
Guest
 
Posts: n/a
#1: Nov 12 '05
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!
Allen Browne
Guest
 
Posts: n/a
#2: Nov 12 '05

re: calculating month end returns in expressions???


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" <dbuckley@mail.com> wrote in message
news:7b5226c9.0310210710.6564ae6f@posting.google.c om...[color=blue]
> 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![/color]


Closed Thread