• Mmm.. sounds like you're asking us to do the whole of your homework/prjoect work for you! What have you tried so far? Here's a hint: you can't use a function to do inserts and updates: use a stored procedure instead.

    John