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 > Paradox Report

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-11, 04:27
FabioBs FabioBs is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Paradox Report

Hi!
1) Excuse me for my english!
2) I must prepare a formula in a field in paradox report that show number "23" if the date of a record (:Tables:comm.Comm_dt_aper) is < "31/12/2010", else shows "24". What can I do to make this?

Thank you very much for all the answers!
Reply With Quote
  #2 (permalink)  
Old 06-21-11, 12:07
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 282
[my field] = IIF( (:Tables:comm.Comm_dt_aper) < "31/12/2010", "23" , "24" )

your example, as shown, might not work correctly without DATEVAL() or other similar conversion
__________________
--
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 07-15-11, 07:53
FabioBs FabioBs is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Quote:
Originally Posted by Steve Green View Post
[my field] = IIF( (:Tables:comm.Comm_dt_aper) < "31/12/2010", "23" , "24" )

your example, as shown, might not work correctly without DATEVAL() or other similar conversion
Where can I fill the DATEVAL? Before Comm_dt_aper and/or 31/12/2010 doesn't works...

= IIF( (:Tables:comm.Comm_dt_aper) < DATEVAL(31/12/2010), "23" , "24" )
Reply With Quote
  #4 (permalink)  
Old 07-15-11, 08:17
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 282
I do not what any of your field types are, I do not know what your variables types are, I do not know what version of paradox you are using, I do not know what your error message is, etc, etc, etc.. my example was just an example to give you ideas.. if you supply much more detail, and post your message on the "paradox community" forum, you can get some great help..

Home - Paradox Community

go to support, then go to newsgroups..
__________________
--
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
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