G
Guest
Simple question...
I want to retrive the last record in the database if the value of id is
nothing!
Can someone please help!
Thanks
....CODE...
Dim objImpCnt As SqlParameter
If objImpCnt Is Nothing Then
objImpCnt = cmd.Parameters.Add("@newsID", SqlDbType.Int)
objImpCnt.Direction = ParameterDirection.Input
objImpCnt.Value = id
Else
objImpCnt.Value = 'Last Record in the db
End If
I want to retrive the last record in the database if the value of id is
nothing!
Can someone please help!
Thanks
....CODE...
Dim objImpCnt As SqlParameter
If objImpCnt Is Nothing Then
objImpCnt = cmd.Parameters.Add("@newsID", SqlDbType.Int)
objImpCnt.Direction = ParameterDirection.Input
objImpCnt.Value = id
Else
objImpCnt.Value = 'Last Record in the db
End If