You can filter data from linked tables the same way you do that with "normal" tables in MS Access, for example by using
Parameters[
^]
PARAMETERS [cusname] CHAR;
SELECT C.Id, C.age, C.salary, C.CustomersName
FROM [Customers] AS C
WHERE C.CustomersName = [cusname];
Conclusion: You don't need to write code to get data from MS SQL Server, because the data are already linked to MS Access database.
For further details, please see:
Everything About Using Parameters from Code[
^]
Tips and Techniques for Queries in Access 2007[
^]