>So there's no way to get it to return the id from inside that statement?
>Maybe assign it to a variable in there?
>
>>
You could do the following (I am assuming you are using SQL server?)
declare @Avariable INT
SELECT @Avariable = ISNULL(YourId, 0) FROM Atable WHERE something =
something
IF @Avariable > 0
BEGIN
do something
END
ELSE
BEGIN
do somethign else
END
hope it helps.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232704
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54