Thanks for responding Hilary (I've previously spelled your name with two l's and I apologize!)
I've looked at the "expression box" (calculated value). When I look at its properties, it doesn't have its own name, so I don't see how I can modify it from the code-behind (the idea is that something I do in code will affect what I want to display in the box, like an error message). Setting it up to use the contents of another field on the form means that the other field has to be named, and in a DB datasource template, that means the "other field" has to be in the database, so back to square one on that one, I think.
The secondary data source is an option I'll look in to, although it seems like it might be complicated to change from one entry in the secondary datasource xml to another. I'll play with it.
Thanks again for your help!
Dennis