You have to pass the values into the query as a parameter.Here's an exampel from the Northwind database: CREATE PROCEDURE CustOrdersOrders @CustomerID nchar(5)ASSELECT OrderID, OrderDate, RequiredDate, ShippedDateFROM OrdersWHERE CustomerID = @CustomerIDORDER BY OrderID
When calling this stored proc, you need to pass the value of @CustomerID into the stored proc.Are you using Access as a FrontEnd to SQL Server? Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda>