G
Guest
Hi,
In Microsoft Access, using the Northwind database as an example I would like
to use a stored procedure with parameters to do this:
SELECT EmployeeID
FROM Employees
WHERE EmployeeID In (1,2,3)
The best I have come up with from an big Internet search (with most examples
in SQL Server) is
PARAMETERS strList text(255);
SELECT EmployeeID
FROM Employees
WHERE EmployeeID In (' & @strList & ')
When running the query I input: 1,2,3
which doesn't work.
Can anyone help?
Cheers,
Tim.
In Microsoft Access, using the Northwind database as an example I would like
to use a stored procedure with parameters to do this:
SELECT EmployeeID
FROM Employees
WHERE EmployeeID In (1,2,3)
The best I have come up with from an big Internet search (with most examples
in SQL Server) is
PARAMETERS strList text(255);
SELECT EmployeeID
FROM Employees
WHERE EmployeeID In (' & @strList & ')
When running the query I input: 1,2,3
which doesn't work.
Can anyone help?
Cheers,
Tim.