G
Guest
In the tblEvaluations the peopleTypeID is a number:
However on a data input form it is attached to a value list.
There is a SQL query for the field:
SELECT tblPeopleType.PeopleID, tblPeopleType.PeopleType FROM tblPeopleType
ORDER BY [PeopleType];
This is probably why it doesn't work with the switch statement since the
value is stored in the field not the number.
Here is my switch statement in a query for a report.
My switch calc doesn't work:
People:SWITCH ( PeopleID = 1, 'Party', PeopleID = 2, 'Attorney', PeopleID =
3, 'Insurance',TRUE, CHR(0) )
If the ID field is 1, I want the text Party. If the ID field is 2 I want
the work Attorney.
If it is 3 I want Insurance on the line in the report.
Is there a way to fix the SQL query on the form so that the switch statement
works on the report?
thanks,
However on a data input form it is attached to a value list.
There is a SQL query for the field:
SELECT tblPeopleType.PeopleID, tblPeopleType.PeopleType FROM tblPeopleType
ORDER BY [PeopleType];
This is probably why it doesn't work with the switch statement since the
value is stored in the field not the number.
Here is my switch statement in a query for a report.
My switch calc doesn't work:
People:SWITCH ( PeopleID = 1, 'Party', PeopleID = 2, 'Attorney', PeopleID =
3, 'Insurance',TRUE, CHR(0) )
If the ID field is 1, I want the text Party. If the ID field is 2 I want
the work Attorney.
If it is 3 I want Insurance on the line in the report.
Is there a way to fix the SQL query on the form so that the switch statement
works on the report?
thanks,