'If this is a post back then save the category If (strMode = "edit" OR strMode = "new") AND CBool(Request.Form("postBack")) Then 'If this is a new one add new If strMode = "new" Then rsCommon.AddNew 'Update the recordset rsCommon.Fields("Cat_name") = Request.Form("category") 'Update the database with the category details rsCommon.Update |