

Looks like I added too many brackets and used .contains instead of .containsKey.trigger UpdateAmount on Contact (after insert, after update) { //You want it on update too, right?
Map<ID, Account> parentOpps = new Map<ID, Account>(); //Making it a map instead of list for easier lookup
List<Id> listIds = new List<Id>();
for (contact childObj : Trigger.new) {
listIds.add(childObj.Account_ID__c);
}
parentOpps = new Map<Id, account>([SELECT id, Parent_amount__c, Greater_amount__c, Lesser_Amount__c, Name FROM Account WHERE ID IN :listIds]);
List<Account> updatedParentOpps = new List<Account>();
for (contact con: Trigger.new){
if(parentOpps.containsKey(con.Account_ID__c)) {
Account myAccount = parentOpps.get(con.Account_ID__c);
if(myParentOpp.Parent_Amount__c < con.Amount__c) {
myParentOpp.Parent_Amount__c = con.Amount__c;
myParentOpp.Greater_Amount__c = true;
updatedParentOpps.add(myParentOpp);
} else if(myParentOpp.Parent_Amount__c > con.Amount__c) {
myParentOpp.Lesser_Amount__c = true;
updatedParentOpps.add(myParentOpp); }
}
}
if(parentOpps.size()>0){
update parentOpps.values();
}
}