Figured it out. So apparently, I have to leave the form in design mode when publishing. What I'd been doing (by habit, I suppose?) was to write the code, compile, go back to form view, then publish. By skipping that second-to-last step, I was able to get my accde.
Not sure if that's the way...