in reply to Update/insert record in database

Sounds easy enough. What have you tried so far? What errors did you get? Can you help us help you?