L
ld-runner
I am really in a bind and cannot seem to get anything to work.
I have a form in data sheet view. It shows table info from a several fields,
one is called "department".
'department' is set values by a combo box from another form so it is either
0,1,2,3 or 4.
so when i diplay the data in another form, people do not understand 1 =
Billing and 2 = Operations. I need the form to display that.
i have tried
=IIf([department] ="0", "No
Data",IIf([department]="1","Billing",IIf([department]="2","Safety",IIf([department]="3","Operations",IIf([department]="4","Vehicle")))))
i have also tried;
= Switch([department] = "0", "NoData", [department] = "1", "Billing",
[department] = "2", "Safety", [department] = "3", "Operations", [department]
= "4", "Vehicle")
all i ever get is #Error
I have a form in data sheet view. It shows table info from a several fields,
one is called "department".
'department' is set values by a combo box from another form so it is either
0,1,2,3 or 4.
so when i diplay the data in another form, people do not understand 1 =
Billing and 2 = Operations. I need the form to display that.
i have tried
=IIf([department] ="0", "No
Data",IIf([department]="1","Billing",IIf([department]="2","Safety",IIf([department]="3","Operations",IIf([department]="4","Vehicle")))))
i have also tried;
= Switch([department] = "0", "NoData", [department] = "1", "Billing",
[department] = "2", "Safety", [department] = "3", "Operations", [department]
= "4", "Vehicle")
all i ever get is #Error