Previous Thread
Next Thread
Print Thread
#36816 05/08/13 05:27 PM
Joined: Jan 2013
Posts: 25
L
Adagio Enthusiast
Adagio Enthusiast
L Offline
Joined: Jan 2013
Posts: 25
We are working on a gridview to do ordering. We want it to do a few things.

1. Show only stock items
2. Remove any that have report group CLR (clearance) or SPO (special Order)
3. Only show items that have Suggested order in LY or YTD greater than 0 (These columns were previously figured out by Susan)
4. Only show the items that have Vendor code 1 or 2 that is entered in the query.

I have played around with the following formula and cannot get it to work. This is the best I have come up with. I cannot get steps 3 and 4 to work together. The formula below shows all vendors. How can I fix this?

AND(
1. {Stock Item?} = 1,

2. TRIM({Report Group})<>"CLR",
    TRIM({Report Group})<>"SPO",

OR(
3. {Sugg Order YTD}>0,
    {Sugg Order LY} >0,

4. Left({Vendor 1 Code},6) =Left(QueryString("Enter Vendor Number"),6),
    Left({Vendor 2 Code},6) =Left(QueryString("Enter Vendor Number"),6)

))


Lance Tennier
TDL Canada
LanceBakker #36819 05/08/13 11:36 PM
Joined: Mar 2002
Posts: 4,571
Adagio God
Adagio God
Joined: Mar 2002
Posts: 4,571
Hi Lance

The "OR" brackets are wrong. I also cleaned up the formatting a bit.

AND(
{Stock Item?} = 1
,
TRIM({Report Group})<>"CLR"
,
TRIM({Report Group})<>"SPO"
,
OR(
{Sugg Order YTD} > 0
,
{Sugg Order LY} > 0
)
,
OR(
Left({Vendor 1 Code},6) =Left(QueryString("Enter Vendor Number"),6)
,
Left({Vendor 2 Code},6) =Left(QueryString("Enter Vendor Number"),6)
)
)

Joined: Jan 2013
Posts: 25
L
Adagio Enthusiast
Adagio Enthusiast
L Offline
Joined: Jan 2013
Posts: 25
Thanks, this worked perfect.


Lance Tennier
TDL Canada

Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
0 members (), 70 guests, and 2 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,679
Posts71,625
Members1,874
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Powered by UBB.threads™ PHP Forum Software 8.0.0