P
porboy423
I am having difficulty printing the results of an iif expression used on a
form. I would like to be able to export the results of the expression into a
single field in a table called "location" for further sorting, but would
settle for just being able to print what it shows in the form.
I set up an inventory database using check boxes for each storage location
because one account may have items stored in several places. I am trying to
make a report that lists either the account number with all the locations
related to the account; or, a list of account numbers sorted by storage
locations for retrieving several items for several accounts at once.
The iif expression is as follows:
=IIf([A]," A,","") & IIf([A1]," A-1,","") & IIf([A2]," A-2,","") &
IIf([A3]," A-3,","") & IIf(," B,","") & IIf([B1]," B-1,","") & IIf([C],"
C,","") & IIf([C1]," C-1,","") & IIf([D]," D,","") & IIf([D1]," D-1,","") &
IIf([E]," E,","") & IIf([F]," F,","") & IIf([G]," G,","") & IIf([G1],"
G-1,","") & IIf([H]," H,","") & IIf([H1]," H-1,","") & IIf(," I,","") &
IIf([I1]," I-1,","") & IIf([J]," J,","") & IIf([J1]," J-1,","") & IIf([K],"
K,","") & IIf([L]," L,","") & IIf([M]," M,","") & IIf([N]," N,","") &
IIf([O]," O,","") & IIf([P]," P,","") & IIf([P1]," P-1,","") & IIf([R],"
R,","") & IIf(," S,","") & IIf([MB1]," MB1,","") & IIf([MB2]," MB2,","") &
IIf([MB3]," MB3,","") & IIf([MB4]," MB4,","")
Any help would be greatly appreciated.
form. I would like to be able to export the results of the expression into a
single field in a table called "location" for further sorting, but would
settle for just being able to print what it shows in the form.
I set up an inventory database using check boxes for each storage location
because one account may have items stored in several places. I am trying to
make a report that lists either the account number with all the locations
related to the account; or, a list of account numbers sorted by storage
locations for retrieving several items for several accounts at once.
The iif expression is as follows:
=IIf([A]," A,","") & IIf([A1]," A-1,","") & IIf([A2]," A-2,","") &
IIf([A3]," A-3,","") & IIf(," B,","") & IIf([B1]," B-1,","") & IIf([C],"
C,","") & IIf([C1]," C-1,","") & IIf([D]," D,","") & IIf([D1]," D-1,","") &
IIf([E]," E,","") & IIf([F]," F,","") & IIf([G]," G,","") & IIf([G1],"
G-1,","") & IIf([H]," H,","") & IIf([H1]," H-1,","") & IIf(," I,","") &
IIf([I1]," I-1,","") & IIf([J]," J,","") & IIf([J1]," J-1,","") & IIf([K],"
K,","") & IIf([L]," L,","") & IIf([M]," M,","") & IIf([N]," N,","") &
IIf([O]," O,","") & IIf([P]," P,","") & IIf([P1]," P-1,","") & IIf([R],"
R,","") & IIf(
IIf([MB3]," MB3,","") & IIf([MB4]," MB4,","")
Any help would be greatly appreciated.