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  dBforums > PC based Database Applications > Corel Paradox > Using the function: Today()

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-10, 13:35
Brationer Brationer is offline
Registered User
 
Join Date: Jan 2005
Posts: 22
Using the function: Today()

Hello there, I need a little assistance please.

Can "Today()" be used in a QBE or a Report? I am trying to use it in order to find the number of years an employee or a group of employees worked. I tried using 'example elements' in a query to no avail.

Something like: "(today() - Employee's Employment date)/ 365.25"

I can copy the data to a spreadsheet and get a result, but this not what I need.
Reply With Quote
  #2 (permalink)  
Old 06-08-10, 08:12
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 282
in QBE, the word today without the parens.. in reports, functions work with the parens..
__________________
--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage Lego Sets and Supplies
Reply With Quote
  #3 (permalink)  
Old 06-08-10, 09:55
Brationer Brationer is offline
Registered User
 
Join Date: Jan 2005
Posts: 22
Thank you

Thank you very much brother Greene. However, I gave it a shot and I am back at 'square one'.

I really need some guidance on this one.
Reply With Quote
  #4 (permalink)  
Old 06-08-10, 09:58
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 282
the few remaining long-time paradox developers hang out at Home - Paradox Community, not here.. that's why I keep telling everyone to post there..
__________________
--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage Lego Sets and Supplies
Reply With Quote
  #5 (permalink)  
Old 06-08-10, 10:46
IMAcoolClassic IMAcoolClassic is offline
Registered User
 
Join Date: May 2007
Posts: 31
I don't know if this would help any but I've had some success in by using statements like this is...

(DatePart("yyyy",Date())-DatePart("yyyy",[Birthdate]))-1

Which in this example is taking today's year and subtracting the year of the birthday...

Hope this triggers an idea for you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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