Programmatic setting of quotas not working

I’m trying to create an application for handling quotas. The problem I’m running into is when a user’s quota needs to go down. Merely trying to use the code: Maildb.SizeQuota = quota * 1024

Maildb.SizeWarning = threshold * 1024

Doesn’t work, it throws out an error that the “size limit exceeds quota”.

So… I tried following the designer help and setting the quota’s to nothing before I try setting them to what they need to be:

Maildb.SizeQuota = 0

Maildb.SizeWarning = 0

No go, same error message.

I’ve got it working just fine to increase the quotas, but going back down is not working.

Any ideas?

Subject: Fixed

Need to set the threshold first before attempting to set the quota.