H
Hugh self taught
Hi All,
I have tables "Types" & "Candidates". Table Types has fields pk &
Designation. Table Candidates has a field "Type" which is the fpk from Types
& a field "accresp".
My Candidates form has a combo on accresp which looks up the value of type
where type = "Employer" (I don't want to use the pk as ref in case the type
table gets changed)
My SQL is
SELECT Candidates.Candidates_Idx, Candidates.FirstName & " " &
Candidates.Surname AS Name, Types.Designation
FROM Candidates INNER JOIN Types ON Candidates.Type = Types.Types_Idx
WHERE (((Types.Designation)="Employer"))
ORDER BY Candidates.FirstName & " " & Candidates.Surname;
What I need help with now is adding to the WHERE when type on my form =
"Employer"
I have an idea but can't seem to get the syntax right.
I have tables "Types" & "Candidates". Table Types has fields pk &
Designation. Table Candidates has a field "Type" which is the fpk from Types
& a field "accresp".
My Candidates form has a combo on accresp which looks up the value of type
where type = "Employer" (I don't want to use the pk as ref in case the type
table gets changed)
My SQL is
SELECT Candidates.Candidates_Idx, Candidates.FirstName & " " &
Candidates.Surname AS Name, Types.Designation
FROM Candidates INNER JOIN Types ON Candidates.Type = Types.Types_Idx
WHERE (((Types.Designation)="Employer"))
ORDER BY Candidates.FirstName & " " & Candidates.Surname;
What I need help with now is adding to the WHERE when type on my form =
"Employer"
I have an idea but can't seem to get the syntax right.