I'd put the query and data fields for all data connections involved on the form someplace (just for testing) and publish to the browser. Do the fields have the same values in preview as in the browser? That is, if there is something specific in your logic, which, of course, I can't guess at, that relies on matching values, there is a chance that in the browser the data being returned is slightly different.
Hilary Stoupa
