In a small pot, heat the sugar and vinegar. Once the sugar dissolves, remove from the heat and add the oil. Mix well.
In a bowl, mix the black-eyed peas, corn, green bell peppers, onions and red bell peppers and toss with the dressing. Place in the fridge until ready to eat.