I am trying to get the receipt amount to change to the gift amount minus 9. I am working in the after dictionaries section which already has some code:
If import.fields.GetByName("Processing_Method").value="Sustaining" Then import.fields.GetByName("Form_Name").Value="SPW" import.ApplyDictionary("Online Appeal Translation Table",import.fields.GetByName("Form_Name").value) End If
The above code works fine.
I am using the following code to try to calculate receipt amount:
Dim GiftAmount As Decimal = val(Import.fields.getbyName("GIFT_AMOUNT").Value)
Marie Minardi
If import.fields.GetByName("Processing_Method").value="Sustaining" Then import.fields.GetByName("Form_Name").Value="SPW" import.ApplyDictionary("Online Appeal Translation Table",import.fields.GetByName("Form_Name").value) End If
The above code works fine.
I am using the following code to try to calculate receipt amount:
Dim GiftAmount As Decimal = val(Import.fields.getbyName("GIFT_AMOUNT").Value)
Dim ReceiptAmount As Decimal= GiftAmount-9
Import.Fields.GetByName("Receipt Amount").Value cstr(GiftAmount-9)
The last line is giving me the following two errors:
Property access must assign to the property or use its value
Method arguments must be enclosed in parentheses.
I eventually want to enclose this in an if statement also. Can anyone tell me what I am doing wrong.