Hi, you can only use sum([TXTAMT]) in a report format assuming the TXTAMT points to a data control source.
For a "Form" format, you can use DSUM function which should be as follows:
TXTTOTAL= DSUM("[TXTAMT]", "tbl_Name or Qry_Name") ' Note that invert comma positions. Also no criteria...