Re: [libreoffice-users] LO Base - calculating dates
Use MySQL with PERIOD_ADD(P,N) to add N months to the date P Mark Stanton One small step for mankind... -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] LO Base - calculating dates
I think (without actually having tried it) that just adding numbers to a date field will do what you want, so your date field+365 should give you the year in advance date Mark Stanton One small step for mankind... -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] LO Base - calculating dates
On 01/28/2012 05:42 AM, Mark Stanton wrote: I think (without actually having tried it) that just adding numbers to a date field will do what you want, soyour date field+365 should give you the year in advance date A side note of caution. Not every year has 365 days, so tricks are usually used to do things such as add one month or add one year. I expect there to be date arithmetic functions available to do this in SQL, but, if they are not easily obtained, you use tricks to manually extract things such as the day / month / year, add the portions of interest, and convert back. You can still get in trouble when moving from a leap year to a non-leap year if you try to simply add one year and keep all other things the same (because the number of days in one of the months may change). That said, for quick and dirty calculations, I do things very similar to what you recommend. -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt Info: http://www.pitonyak.org/oo.php -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] LO Base - calculating dates
Hi, I'm a very basic Base user. Can't seem to find any info on having Base calculate a date in a Table. I want to enter the date of a Lease Agreement; follow up is required at 6 months and 12 months, it would be nice to have these dates automatically calculated I'm hoping I can set this up directly in the Table; or do I need to make a query? If I need to make a query, how do I enter it into the form? Currently these dates are part of a subform in datasheet format. Thanks in advance for your help, CB -- View this message in context: http://nabble.documentfoundation.org/LO-Base-calculating-dates-tp3694844p3694844.html Sent from the Users mailing list archive at Nabble.com. -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted