OP,
Query for you, are you changing your file's format? I noticed you are referencing different fields in your code examples. Also, why reference by Field rather than using the field's name?
Referencing by Field is far less obvious in code than using the fields name, and can easily lead to using an incorrect function or improper formatting. Horrible when you accidentally format your BalanceAmount as a date for use...
Query for you, are you changing your file's format? I noticed you are referencing different fields in your code examples. Also, why reference by Field rather than using the field's name?
Referencing by Field is far less obvious in code than using the fields name, and can easily lead to using an incorrect function or improper formatting. Horrible when you accidentally format your BalanceAmount as a date for use...