i am developing with vb.net and the sql server. I want to create a function that checks within a idea if a recordset is member of a table. The table has the field called "ID". The ID schould be passend into the function.

Can someone give me some code, so that I can create this function?