Don't know how you intend to pass the Code value to your query, but this should work if you can tweak it to accommodate whatever that method is
Code:
SELECT tblGroupCode.ID, tblGroupCode.Code, tblGroupCode.Nme, tblGroupCode.Grp
FROM tblGroupCode WHERE (((tblGroupCode.Grp)=(SELECT [Grp] FROM [tblGroupCode] where {code} = [input])));
This one was a 1st for me. Having [ ] around the word code messes up the post, so I substituted braces { }. You need to swap those for square brackets.
Those are not your real table field names, I hope.
Last edited by Micron; 03-26-2018 at 02:29 PM.
Reason: code problem
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.