I keep getting an overflow error when the amount in the variable excceds 32000.

it is set as dim moneyt as currency

when the amount gets to 30k i want my calacution to stop adding to it

my question is

is there a way to stop the calculation when it reaches 30k?

thanks