No such code exists. On the Nintendo DS, the only way to set your bell balance to an arbitrary figure is with a cheat device — an R4 card running an Action Replay-style homebrew menu, or an actual Action Replay cartridge.
Both are unofficial hardware, and both carry the usual caveats: they can corrupt a save, and using them online is against Nintendo's terms.
If you just want bells, the legitimate grind is the turnip market — buy low on Sunday, sell high during the week.