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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL server SP from Access 2000

Status
Not open for further replies.

glealv

Programmer
Apr 17, 2002
17
US
Hi, I am wondering why this SP does not return any rows when executed from Access 2000?
[CREATE PROCEDURE [dbo].[UspContaks] @clyent nvarchar(7) AS
select *
from tabContacts
where ClientID = @clyent
order by ClientID, ContactKey
GO]

Access 2000 VBA:
[conLocal.Open "Provider=SQLOLEDB;Server=HXXPFSRV08;Database=CustService;Trusted_Connection=Yes"
conLocal.Execute "UspContaks 'Y338032'", lngRows]
 
i suppose you work in an ADP
you can easy execute Sp with this code

lstGeraete.RowSource = "EXEC SP_geraeteFilter '" & cboGraeteWahl.Value & "'"
' the text behind the Sp name are parameters
or to make it avaailable to the form (just enter the field name in the bound field)
use:
Form.RecordSource = "EXEC SP_EditLieferant " & iLieferantIDTemp

i suggest when using SP to return values that you make a select statement with all fieldnames insead of the "*"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top