Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select Formula Post Reply Post New Topic
Author Message
MadManJiggs
Newbie
Newbie
Avatar

Joined: 09 Jun 2008
Online Status: Offline
Posts: 10
Quote MadManJiggs Replybullet Topic: Select Formula
    Posted: 08 Jul 2008 at 8:31am
The logic to my selection is:

If the item_id  is stockable use Last sales Date if the item is nonstock then use > OH Qty for selection.  First of all is this possible? and second when i run this selection it gives me the whole database all items i only want items that fall in those requirements, i tried doing a else statement to no avail.


if({p21_item_location_view.stockable} = "Y" and {p21_item_location_view.last_sale_date} < Date (2008, 01 ,07 )) or
({p21_item_location_view.stockable} = "N"  and {p21_item_location_view.qty_on_hand} > 0 and
{p21_item_location_view.delete_flag} = "N")

Should use or or else maybe there is a better way to write this im not sure i am still a novice to writing formulas.
CJ
IP IP Logged
MadManJiggs
Newbie
Newbie
Avatar

Joined: 09 Jun 2008
Online Status: Offline
Posts: 10
Quote MadManJiggs Replybullet Posted: 10 Jul 2008 at 8:06am
I am trying to figure this out,

I have items that are either stockable and Non Stockable Y or N

if item is yes i want it to select data selected by Date where if its N i want it to be selected by OH qty, Is there a easy way of doing this?
CJ
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.