Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP

Status
Not open for further replies.

amal1973

Technical User
Joined
Jul 31, 2001
Messages
131
Location
US
Hello ...
I have created a Stored Procedure in SQL server With one perameter .
I want to be able top connect to access 2000 and pass this perameter. what are the steps that i should take...
thanks in advance

Create PROC InsertAccountNumber @Account nvarchar(255)
AS
SELECT Com_Names.COMPANY_NAME,
Expense_Analysis.ACCOUNT,
SUM(Expense_Analysis.AMOUNT) AS Amount

FROM Com_Names INNER JOIN
Expense_Analysis ON
Com_Names.ACCOUNT = Expense_Analysis.ACCOUNT
WHERE Expense_Analysis.ACCOUNT =@Account
GROUP BY Com_Names.COMPANY_NAME,
Expense_Analysis.ACCOUNT

EXEC InsertAccountNumber @Account='0862001'

What shell i do in access and what shell i create to just enter the account number to have the result..
thanks to all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top