I have a form with a select query recordset, which includes a couple calculated fields. The calculations are done in the query. I calculated the fields in VBA and returned a number (long) so I could sort the query on this number. Additionally, I do not want zeros to display in the form, but I cannot get the Format property on the text field correctly set. Any custom format string does not work. If I use one of the pre-defined formats such as "Currency" from the property dialog combo box, it works just fine.
I have tried various custom format codes, including the "four-state" declaration (+;-;0;Null). But actually any custom format fails. For instance if I put a"#" in the format property it treats the format code literally and displays the pound sign. Thanks.