G
Guest
I have created a form with multiple [frames] or Option class buttions,
however you want to call them. This form is linked to a subquery in the form
providing the info based on what option buttons are selected.
This is the problem:
I have been working on this for about 30 hours straight and cannot get past
this part. I have the [Line] sort working but, the other options in the same
query are not responding and they are setup the same way as the [Line] code.
See code below: sitting in the criteria of a query.
four sorting colunms > [Line] [CH] [LT-DT] and [Deltas]
Line: "1" is the option number and "11" in the number sorted by.
IIf([Forms]![Main_out]![Frame60] Like "1","11")
IIf([Forms]![Main_out]![Frame60] Like "2","12")
IIf([Forms]![Main_out]![Frame60] Like "3","13")
IIf([Forms]![Main_out]![Frame60] Like "4","14")
IIf([Forms]![Main_out]![Frame60] Like "5","31")
IIf([Forms]![Main_out]![Frame60] Like "6","32")
IIf([Forms]![Main_out]![Frame60] Like "7","33")
IIf([Forms]![Main_out]![Frame60] Like "8","34")
IIf([Forms]![Main_out]![Frame60] Like "11","31")
IIf([Forms]![Main_out]![Frame60] Like "11","32")
IIf([Forms]![Main_out]![Frame60] Like "11","33")
IIf([Forms]![Main_out]![Frame60] Like "11","34")
IIf([Forms]![Main_out]![Frame60] Like "13","31")
IIf([Forms]![Main_out]![Frame60] Like "13","32")
IIf([Forms]![Main_out]![Frame60] Like "13","33")
IIf([Forms]![Main_out]![Frame60] Like "13","34")
IIf([Forms]![Main_out]![Frame60] Like "13","14")
IIf([Forms]![Main_out]![Frame60] Like "14","11")
IIf([Forms]![Main_out]![Frame60] Like "14","12")
IIf([Forms]![Main_out]![Frame60] Like "14","13")
IIf([Forms]![Main_out]![Frame60] Like "15","31")
IIf([Forms]![Main_out]![Frame60] Like "15","32")
IIf([Forms]![Main_out]![Frame60] Like "15","33")
IIf([Forms]![Main_out]![Frame60] Like "15","34")
IIf([Forms]![Main_out]![Frame60] Like "15","14")
IIf([Forms]![Main_out]![Frame60] Like "15","11")
IIf([Forms]![Main_out]![Frame60] Like "15","12")
IIf([Forms]![Main_out]![Frame60] Like "15","13")
CH:
IIf([Channel] Like "5","ALL",
IIf([Channel] Like "1","CTO",
IIf([Channel] Like "2","B2B",
IIf([Channel] Like "3","Retail",
IIf([Channel] Like "4","PVT","ALL")))))
LT-DT:
IIf([Channel] Like "3","ALL",
IIf([Channel] Like "1","LT",
IIf([Channel] Like "2","DT",
"ALL")))
Delta:
IIf([Channel] Like "3","ALL",
IIf([Channel] Like "1","Delta",
IIf([Channel] Like "2","",
"ALL")))
however you want to call them. This form is linked to a subquery in the form
providing the info based on what option buttons are selected.
This is the problem:
I have been working on this for about 30 hours straight and cannot get past
this part. I have the [Line] sort working but, the other options in the same
query are not responding and they are setup the same way as the [Line] code.
See code below: sitting in the criteria of a query.
four sorting colunms > [Line] [CH] [LT-DT] and [Deltas]
Line: "1" is the option number and "11" in the number sorted by.
IIf([Forms]![Main_out]![Frame60] Like "1","11")
IIf([Forms]![Main_out]![Frame60] Like "2","12")
IIf([Forms]![Main_out]![Frame60] Like "3","13")
IIf([Forms]![Main_out]![Frame60] Like "4","14")
IIf([Forms]![Main_out]![Frame60] Like "5","31")
IIf([Forms]![Main_out]![Frame60] Like "6","32")
IIf([Forms]![Main_out]![Frame60] Like "7","33")
IIf([Forms]![Main_out]![Frame60] Like "8","34")
IIf([Forms]![Main_out]![Frame60] Like "11","31")
IIf([Forms]![Main_out]![Frame60] Like "11","32")
IIf([Forms]![Main_out]![Frame60] Like "11","33")
IIf([Forms]![Main_out]![Frame60] Like "11","34")
IIf([Forms]![Main_out]![Frame60] Like "13","31")
IIf([Forms]![Main_out]![Frame60] Like "13","32")
IIf([Forms]![Main_out]![Frame60] Like "13","33")
IIf([Forms]![Main_out]![Frame60] Like "13","34")
IIf([Forms]![Main_out]![Frame60] Like "13","14")
IIf([Forms]![Main_out]![Frame60] Like "14","11")
IIf([Forms]![Main_out]![Frame60] Like "14","12")
IIf([Forms]![Main_out]![Frame60] Like "14","13")
IIf([Forms]![Main_out]![Frame60] Like "15","31")
IIf([Forms]![Main_out]![Frame60] Like "15","32")
IIf([Forms]![Main_out]![Frame60] Like "15","33")
IIf([Forms]![Main_out]![Frame60] Like "15","34")
IIf([Forms]![Main_out]![Frame60] Like "15","14")
IIf([Forms]![Main_out]![Frame60] Like "15","11")
IIf([Forms]![Main_out]![Frame60] Like "15","12")
IIf([Forms]![Main_out]![Frame60] Like "15","13")
CH:
IIf([Channel] Like "5","ALL",
IIf([Channel] Like "1","CTO",
IIf([Channel] Like "2","B2B",
IIf([Channel] Like "3","Retail",
IIf([Channel] Like "4","PVT","ALL")))))
LT-DT:
IIf([Channel] Like "3","ALL",
IIf([Channel] Like "1","LT",
IIf([Channel] Like "2","DT",
"ALL")))
Delta:
IIf([Channel] Like "3","ALL",
IIf([Channel] Like "1","Delta",
IIf([Channel] Like "2","",
"ALL")))