J
Jim L.
I am working on a fuel inventory report. I have 11 tanks that may be either
unleaded, premium or diesel, and may change throughout the year. The product
in each tank, along with the amount, is entered on a form, and this report is
based on the same table. I would like to have a total amount of each product
shown on the report. I have made a text box with the following expression in
the control source;
iif([tank1product]="Unleaded",[tank1gallons],0)
I believe this should display the amount of gallons in tank 1 in the text
box if the product is unleaded, and display a 0 if not. From here, I would
do the same for each tank and each product, then add another text box under
these to total each product. None of these boxes would be visible on the
report except the product totals.
Unfortunately, I am getting a syntax error about commas and/or parentheses
when I try the first box. I am probably going about this the hard way. Any
help for a beginner would be appreciated.
unleaded, premium or diesel, and may change throughout the year. The product
in each tank, along with the amount, is entered on a form, and this report is
based on the same table. I would like to have a total amount of each product
shown on the report. I have made a text box with the following expression in
the control source;
iif([tank1product]="Unleaded",[tank1gallons],0)
I believe this should display the amount of gallons in tank 1 in the text
box if the product is unleaded, and display a 0 if not. From here, I would
do the same for each tank and each product, then add another text box under
these to total each product. None of these boxes would be visible on the
report except the product totals.
Unfortunately, I am getting a syntax error about commas and/or parentheses
when I try the first box. I am probably going about this the hard way. Any
help for a beginner would be appreciated.