-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
Paradox To/From
To/FromCODEGuides
Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

February Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardQBE & SQL Topic   Print This     

Using the function

Using the function in QBE & SQL topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: function   Using function  
brationer1
Bridgetown, -- BB

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.

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. 

 Posted 16 years ago (Thread Starter)
Comment Quote
About brationer1
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14147, 3 replies
Thread Started 6/7/2010 6:39:43 AM
View Counter=4069
Last Reply Posted 6/11/2010 5:39:04 PM)
Location=Bridgetown, -- BB 
Joined=16 years ago   MB Posts=17  
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA

Yes, you sure can. In a QBE though, you don't use Today() with parens, but just Today.

As in...

>Today

for a date field after today.

--
Mike Prestwood
Prestwood IT Solutions

 Posted 16 years ago
Comment Quote
About Mike Prestwood
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #14151 (Level 1.1)  Reply to 14147
Thread Started 6/7/2010 11:48:14 AM
Location=Prestwood IT office in Citrus Heights, CA 
Joined=26 years ago   MB Posts=1410   KB Posts=1805   KB Comments=53   BLOG, Topics=4  
brationer1
Bridgetown, -- BB

Thanks for your usual help Mike.  However, I need a little more light to achieve my objective.

I wouldn't mind using the QBE or a report, but I need to solve this.  I looked up a lot of ObjectPal for examples to no avail.

 Posted 16 years ago (Thread Starter)
Comment Quote
About brationer1
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14154 (Level 2.1)  Reply to 14151 and Parent is 14147
Thread Started 6/8/2010 6:58:02 AM
Location=Bridgetown, -- BB 
Joined=16 years ago   MB Posts=17  
Most Recent Post
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA

You can base a report off of a QBE file. When the report opens the report, it first runs the QBE then uses the answer table.

So, the first step is to create a QBE that generates an answer table with the correct data. Have you gotten that far? Do you have a QBE that shows the correct data?

After that, you can use ObjectPAL to pass in values to the QBE to tailor each run of the report.

--
Mike Prestwood
Prestwood IT Solutions

 Posted 16 years ago
Comment Quote
About Mike Prestwood
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #14166 (Level 3.1)  Reply to 14154 and Parent is 14147
Thread Started 6/11/2010 5:36:58 PM
Location=Prestwood IT office in Citrus Heights, CA 
Joined=26 years ago   MB Posts=1410   KB Posts=1805   KB Comments=53   BLOG, Topics=4  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P192A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14147 Counter
4069
Since 6/7/2010

Regarding...

Linked Knowledge Base Article.

This thread is linked to the following KB article.


Mike Prestwood
1. Power: Chapter 12, Handling Reports

Chapter 12, "Handling Reports" from Paradox 9 Power Programming by Mike Prestwood.

Posted to KB Topic: P9 Book: Power Programming
23 years ago, and updated 17 years ago

KB Post
Nothing New Since Your Last Visit
19431
Hits

Corel Paradox / ObjectPAL Coding

Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]