Hi
I am using a passthrough querry to fire a stored procedure on SQL2000.
If i look at the passthrough query i get the NEWID returned properly, but what I can't figure out is how to then assign that value to a control.
Should be easy no?
Thanks in advance for any help!
Scotttom
I am using a passthrough querry to fire a stored procedure on SQL2000.
Code:
CREATE PROCEDURE spMATERIALRECEIPT @MONOPROJECTID int, @RECIEVEDBY varchar(20) AS
INSERT INTO tblMonoMaterialReceipt ( MonoProjectID, RecievedBy, RecievedOn ) SELECT @MONOPROJECTID, @RECIEVEDBY, GetDate();
SELECT NEWID = SCOPE_IDENTITY()
GO
If i look at the passthrough query i get the NEWID returned properly, but what I can't figure out is how to then assign that value to a control.
Should be easy no?
Thanks in advance for any help!
Scotttom