![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I appreciate any help I can get. I have a book on this but I still can not get it. I am getting a syntax error on my IIF statement and I am not sure where I should put the IIF statement. Right now I have it placed it in the report under the details section but I wasn't sure if I needed to create a calculated field in my table instead. The following is my 1st IIF statement placed under the "Roast Beef" header on my report as well as table info. Once I have this IIF statement correct I will follow suite for the IIF statement on the Turkey and the Rolls. Thanks for your help. =iif([Item Code]="RB",[Customer FName] AND " " AND [Customer LName] AND " - " AND [Quantity] AND " " AND [QTY Code]," ") My data base is simple: Customer FName Customer LName Item Code Item Name Item Details Quantity QTY Code Data Example 1 Customer FName=Jim Customer LName=Smith Item Code=RB Item Name=Roast Beef Item Details=Sliced Thin Quantity=6 QTY Code=lbs Data Example 2 Customer FName=Jim Customer LName=Smith Item Code=RBTR Item Name=Rolls Buttercrust Item Details=Sliced Quantity=3 QTY Code=dz Data Example 3 Customer FName=Jim Customer LName=Smith Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thick Quantity=4 QTY Code=lbs Data Example 4 Customer FName=Mike Customer LName=Jones Item Code=RB Item Name=Roast Beef and Gravy Item Details=Light on the gravy Quantity=3 QTY Code=lbs Data Example 5 Customer FName=Mike Customer LName=Jones Item Code=RBTR Item Name=Rolls Marble Rye Item Details= Quantity=4 QTY Code=dz Data Example 6 Customer FName=Mike Customer LName=Jones Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thin Quantity=5 QTY Code=lbs Report Output Needed: Roast Beef Turkey Rolls Jim Smith - 6 lbs Jim Smith - 4 lbs Jim Smith - 3 dz Rolls Buttercrust Sliced Thin Sliced Thick Sliced Mike Jones - 3 lbs Mike Jones - 5 lbs Mike Jones - 4 dz Rolls Marble Rye Light on the Gravy Sliced Thin |
#3
| |||
| |||
|
|
Hi, I appreciate any help I can get. I have a book on this but I still can not get it. I am getting a syntax error on my IIF statement and I am not sure where I should put the IIF statement. Right now I have it placed it in the report under the details section but I wasn't sure if I needed to create a calculated field in my table instead. The following is my 1st IIF statement placed under the "Roast Beef" header on my report as well as table info. Once I have this IIF statement correct I will follow suite for the IIF statement on the Turkey and the Rolls. Thanks for your help. =iif([Item Code]="RB",[Customer FName] AND " " AND [Customer LName] AND " - " AND [Quantity] AND " " AND [QTY Code]," ") My data base is simple: Customer FName Customer LName Item Code Item Name Item Details Quantity QTY Code Data Example 1 Customer FName=Jim Customer LName=Smith Item Code=RB Item Name=Roast Beef Item Details=Sliced Thin Quantity=6 QTY Code=lbs Data Example 2 Customer FName=Jim Customer LName=Smith Item Code=RBTR Item Name=Rolls Buttercrust Item Details=Sliced Quantity=3 QTY Code=dz Data Example 3 Customer FName=Jim Customer LName=Smith Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thick Quantity=4 QTY Code=lbs Data Example 4 Customer FName=Mike Customer LName=Jones Item Code=RB Item Name=Roast Beef and Gravy Item Details=Light on the gravy Quantity=3 QTY Code=lbs Data Example 5 Customer FName=Mike Customer LName=Jones Item Code=RBTR Item Name=Rolls Marble Rye Item Details= Quantity=4 QTY Code=dz Data Example 6 Customer FName=Mike Customer LName=Jones Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thin Quantity=5 QTY Code=lbs Report Output Needed: Roast Beef Turkey Rolls Jim Smith - 6 lbs Jim Smith - 4 lbs Jim Smith - 3 dz Rolls Buttercrust Sliced Thin Sliced Thick Sliced Mike Jones - 3 lbs Mike Jones - 5 lbs Mike Jones - 4 dz Rolls Marble Rye Light on the Gravy Sliced Thin |
#4
| |||
| |||
|
|
Hi, I appreciate any help I can get. *I have a book on this but I still can not get it. *I am getting a syntax error on my IIF statement and I am not sure where I should put the IIF statement. *Right now I have it placed it in the report under the details section but I wasn't sure if I needed to create a calculated field in my table instead. *The following is my 1st IIF statement placed under the "Roast Beef" header on my report as well as table info. *Once I have this IIF statement correct I will follow suite for the IIF statement on the Turkey and the Rolls. Thanks for your help. =iif([Item Code]="RB",[Customer FName] AND " " AND [Customer LName] AND " *- *" AND [Quantity] AND " " AND [QTY Code]," ") My data base is simple: Customer FName Customer LName Item Code Item Name Item Details Quantity QTY Code Data Example 1 Customer FName=Jim Customer LName=Smith Item Code=RB Item Name=Roast Beef Item Details=Sliced Thin Quantity=6 QTY Code=lbs Data Example 2 Customer FName=Jim Customer LName=Smith Item Code=RBTR Item Name=Rolls Buttercrust Item Details=Sliced Quantity=3 QTY Code=dz Data Example 3 Customer FName=Jim Customer LName=Smith Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thick Quantity=4 QTY Code=lbs Data Example 4 Customer FName=Mike Customer LName=Jones Item Code=RB Item Name=Roast Beef and Gravy Item Details=Light on the gravy Quantity=3 QTY Code=lbs Data Example 5 Customer FName=Mike Customer LName=Jones Item Code=RBTR Item Name=Rolls Marble Rye Item Details= Quantity=4 QTY Code=dz Data Example 6 Customer FName=Mike Customer LName=Jones Item Code=TG Item Name=Turkey & Gravy Item Details=Sliced Thin Quantity=5 QTY Code=lbs Report Output Needed: Roast Beef * * * * * * * *Turkey * * * * * * * * *Rolls Jim Smith - 6 lbs * * * Jim Smith - 4 lbs * *Jim Smith - 3 dz Rolls Buttercrust Sliced Thin * * * * * * * *Sliced Thick * * * * *Sliced Mike Jones - 3 lbs * * Mike Jones - 5 lbs *Mike Jones - 4 dz Rolls Marble Rye Light on the Gravy * * Sliced Thin |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |