Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 03:33 PM
db
Guest
 
Posts: n/a
Default calculating month end returns in expressions???

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!
  #2  
Old November 12th, 2005, 03:33 PM
Allen Browne
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.