Why doesnt the checkbox result in a value of -1?

Lopez, Ahiezer 236 Reputation points
2024-07-19T17:22:19.23+00:00

I am checking the boxes of these fields but for whatever reason the the value doesnt result in -1.

Every single box i check returns a value of 0. What can I do so that I get the -1 value of a checked box.

One thing to note is that the table from which this field comes is linked to an SQL server.

User's image

User's image

User's image

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
398 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 54,646 Reputation points
    2024-07-19T18:00:59.6966667+00:00

    What is special about -1? A bit, in SQL, is either 0 (false) or 1 (true) and that is how it would map to a checkbox in SSRS. If you are working with a VB-like language, such as Access macros, then VB true's are -1. Thus you should be treating the values as Boolean and not as numeric values. A boolean value can be mapped to a SQL bit easily irrelevant of what the underlying numeric value is.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.