You'd need to use an integer or other numeric field in the table design,
rather than a Yes/No field, and you'd need either use some other control
than a check box on the form, or else use code in the form's BeforeUpdate
event to change the value from -1 to 1 before saving the record.
Or you could leave the table and form as they are, and use a query to
convert the -1 to 1 whenever you need to report, export, or sum it.
1. Thinking about the circumstances that may be prompting Cynthia's
question, I imagine that most of the time basing *whatever* it is on a query
that does the conversion would be the simplest solution, and would involve
no VBA code.
2. If you were recommending calling the Abs() function from the query, I'd
suggest that's not a good idea, as it would force a call to the expression
service to resolve the VBA function. Using IIf() in the query won't do
that, as it's built into Jet SQL. I could be wrong about the Abs() function
not being built in, but I don't think so.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.