A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Diff



 
 
Thread Tools Display Modes
  #1  
Old June 26th, 2006, 07:06 PM posted to microsoft.public.access.queries
D. M.
external usenet poster
 
Posts: 51
Default Date Diff

Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie
  #2  
Old June 26th, 2006, 07:18 PM posted to microsoft.public.access.queries
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Date Diff

Debbie,

The simple answer is...
DateDiff("m",Date(),[LeaseExpiryDate])

However, it really depends on exactly what you mean by "how many
months". Do you *whole* months, or completed calendar months, or what?
The above expression will return 2 months if LeaseExpiryDate is 1st
August, based on August being 2 months distant from June - is that what
you would expect?

--
Steve Schapel, Microsoft Access MVP

D. M. wrote:
Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie

  #3  
Old June 26th, 2006, 08:40 PM posted to microsoft.public.access.queries
D. M.
external usenet poster
 
Posts: 51
Default Date Diff

Steve,

That solves the problem!!! Thanks!

"Steve Schapel" wrote:

Debbie,

The simple answer is...
DateDiff("m",Date(),[LeaseExpiryDate])

However, it really depends on exactly what you mean by "how many
months". Do you *whole* months, or completed calendar months, or what?
The above expression will return 2 months if LeaseExpiryDate is 1st
August, based on August being 2 months distant from June - is that what
you would expect?

--
Steve Schapel, Microsoft Access MVP

D. M. wrote:
Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie


  #4  
Old June 27th, 2006, 02:21 PM posted to microsoft.public.access.queries
TRS
external usenet poster
 
Posts: 20
Default Date Diff

Hello,
I am fairly new to using Access and I'm in the process of trying to design
our property management database. Did you create your own database in Access
or did you purchase your property management software? Also, remarkably I
was actually looking for an answer to the same question you asked yesterday.
So, thank you.

TRS

"D. M." wrote:

Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie

  #5  
Old June 27th, 2006, 11:01 PM posted to microsoft.public.access.queries
D. M.
external usenet poster
 
Posts: 51
Default Date Diff

TRS,

I created my own database. It's not the best, but it's better than working
with spreadsheets (as was done before me). I have completed the database
(including reports, etc.) with the exception of the accounting portion.
We're still doing manual calculations for 111 properties every
month/quarter/year.

I'm having a hard time trying to figure out how to do percentage rent
calculations in the database. We're thinking of hiring someone to create a
separate module for this.

Good luck with your database. It's been a long 6 months for me!!!

Debbie

"TRS" wrote:

Hello,
I am fairly new to using Access and I'm in the process of trying to design
our property management database. Did you create your own database in Access
or did you purchase your property management software? Also, remarkably I
was actually looking for an answer to the same question you asked yesterday.
So, thank you.

TRS

"D. M." wrote:

Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie

  #6  
Old June 27th, 2006, 11:40 PM posted to microsoft.public.access.queries
TRS
external usenet poster
 
Posts: 20
Default Date Diff

Dear Debbie--

Thank you for getting back to me. I'm sure it will be a long 6 months or
even year for me as well. At least now, I know it's worthwhile doing. I'm
tired of working with the spreadsheets as well, not very efficient. I don't
really want the accounting portion in Access. I would use Quickbooks
software. QB We currently use MAS Accounting software because we have many
facets of our business. I would like our property management division to be
better organized. I do know someone who works in Access quite a bit. If he
has any suggestions regarding the percentage rent calculations, I'll let you
know. I have not seen him in a bit, but when I do I'll mention it to him.

Tracy

"D. M." wrote:

TRS,

I created my own database. It's not the best, but it's better than working
with spreadsheets (as was done before me). I have completed the database
(including reports, etc.) with the exception of the accounting portion.
We're still doing manual calculations for 111 properties every
month/quarter/year.

I'm having a hard time trying to figure out how to do percentage rent
calculations in the database. We're thinking of hiring someone to create a
separate module for this.

Good luck with your database. It's been a long 6 months for me!!!

Debbie

"TRS" wrote:

Hello,
I am fairly new to using Access and I'm in the process of trying to design
our property management database. Did you create your own database in Access
or did you purchase your property management software? Also, remarkably I
was actually looking for an answer to the same question you asked yesterday.
So, thank you.

TRS

"D. M." wrote:

Hello,

In my property management database, I'm trying to calculate how many months
are left (from today) on a lease (based on [LeaseExpiryDate]). How would I
write this expression in a query?

Thanks,

Debbie

  #7  
Old June 28th, 2006, 01:24 AM posted to microsoft.public.access.queries
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Date Diff

Tracy and Debbie,

Just want to say how cool it is that you two are doing this. Most
people find it challenging to get over the initial learning humps with
Access, but you both seem to have understood that it is worth the effort
Congratulations to you both on what you have achieved so far!

I have recently put together a collection of synopses of examples of
Access applications that some of the MVPs have worked on. It's to
illustrate some of Access's flexibility and strength. You may enjoy to
look at it here...
http://accesstips.datamanagementsolutions.biz/apps.htm

On a more practical note, Debbie, please feel free to post to the
newsgroup your specific questions about your percentage calculations
etc, there are always experienced people willing to help.

--
Steve Schapel, Microsoft Access MVP

TRS wrote:
Dear Debbie--

Thank you for getting back to me. I'm sure it will be a long 6 months or
even year for me as well. At least now, I know it's worthwhile doing. I'm
tired of working with the spreadsheets as well, not very efficient. I don't
really want the accounting portion in Access. I would use Quickbooks
software. QB We currently use MAS Accounting software because we have many
facets of our business. I would like our property management division to be
better organized. I do know someone who works in Access quite a bit. If he
has any suggestions regarding the percentage rent calculations, I'll let you
know. I have not seen him in a bit, but when I do I'll mention it to him.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
inputting criteria from a form DawnTreader Running & Setting Up Queries 15 May 4th, 2006 05:21 AM
subforms to autopopulate from main form Dale Using Forms 3 March 7th, 2006 03:57 AM
Adding info to query mjj4golf Running & Setting Up Queries 20 January 9th, 2006 02:29 AM
NETWORKDAYS - Multiple Date Selection Annabelle General Discussion 3 October 4th, 2005 07:04 PM
Date Range and Average F/X Rate David General Discussion 0 June 23rd, 2005 02:26 PM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.