G
Geoff Cox
Hello
I have returned to my attempt to get values from another table in a
query!
I have simplifed matters and made a little progress.
Problem - the query only returns 1 row! I get the row where the name
is school, 1118 is selected, type ="a", and the Renewal_cost = 100.
Is it the wrong type of join?
The SQL view for the query is
SELECT
[test-simple].name, [test-simple].[1118], [test-simple].[1116],
[test-simple].type,
IIf([1118],
Switch(
[type]="a",[test-simple-costs].school_1118,
[type]="c",[test-simple-costs].personal_1118,
[type]="d",[test-simple-costs].fe_1118),
IIf([1116],
Switch(
[type]="a",[test-simple-costs].school_1116,
[type]="c",[test-simple-costs].personal_1116,
[type]="d",[test-simple-costs].fe_1118),0))
AS Renewal_cost
FROM [test-simple] INNER JOIN [test-simple-costs]
ON [test-simple].ID = [test-simple-costs].ID;
If more info needed please say so!
Cheers
Geoff
I have returned to my attempt to get values from another table in a
query!
I have simplifed matters and made a little progress.
Problem - the query only returns 1 row! I get the row where the name
is school, 1118 is selected, type ="a", and the Renewal_cost = 100.
Is it the wrong type of join?
The SQL view for the query is
SELECT
[test-simple].name, [test-simple].[1118], [test-simple].[1116],
[test-simple].type,
IIf([1118],
Switch(
[type]="a",[test-simple-costs].school_1118,
[type]="c",[test-simple-costs].personal_1118,
[type]="d",[test-simple-costs].fe_1118),
IIf([1116],
Switch(
[type]="a",[test-simple-costs].school_1116,
[type]="c",[test-simple-costs].personal_1116,
[type]="d",[test-simple-costs].fe_1118),0))
AS Renewal_cost
FROM [test-simple] INNER JOIN [test-simple-costs]
ON [test-simple].ID = [test-simple-costs].ID;
If more info needed please say so!
Cheers
Geoff