T
takatam
Hi,
In my query I list some fields from a table and would then like to
calculate another one based on the presented values.
The query that I now have is the following:
SELECT DocumentTable.Document, DocumentTable.[Visio Status],
DocumentTable.[HL Status], DocumentTable.[TC Status], DocumentTable.
[Script Status], Switch([Visio Status]<3 Or [HL Status]<3,1,[Visio
Status]=6 And [HL Status]=6 And [TC Status]=6,3,True,2) AS [Overall
Status]
FROM DocumentTable
WHERE (((DocumentTable.Document)=[Forms]![FormDocument]!
[DocumentCombo]));
How can I force the last column (Overall Status) to be of numerical
value? All used columns are numerical, and the values from the Switch
clause are (at least should be) also numbers. So why does it not let
me define the column to be of numerical type?
What I'm trying to do is to assign the last column a value based on
combinations of the other columns.
Any help is appreciated.
Thanks a lot,
Tom
In my query I list some fields from a table and would then like to
calculate another one based on the presented values.
The query that I now have is the following:
SELECT DocumentTable.Document, DocumentTable.[Visio Status],
DocumentTable.[HL Status], DocumentTable.[TC Status], DocumentTable.
[Script Status], Switch([Visio Status]<3 Or [HL Status]<3,1,[Visio
Status]=6 And [HL Status]=6 And [TC Status]=6,3,True,2) AS [Overall
Status]
FROM DocumentTable
WHERE (((DocumentTable.Document)=[Forms]![FormDocument]!
[DocumentCombo]));
How can I force the last column (Overall Status) to be of numerical
value? All used columns are numerical, and the values from the Switch
clause are (at least should be) also numbers. So why does it not let
me define the column to be of numerical type?
What I'm trying to do is to assign the last column a value based on
combinations of the other columns.
Any help is appreciated.
Thanks a lot,
Tom