GK in the UK
Registered User.
- Local time
- Today, 07:50
- Joined
- Dec 20, 2017
- Messages
- 281
I've hit a snag whilst following Allen Browne's recommendation to not use Yes/No fields in tables. Instead, he says use Integer data type and Type 106 Check Box.
I have a pseudo "boolean" type in a table defined as number, integer and with field type 106.
The issue I have is that when I run a query on the table, the data type always returns as Integer (type 3, dbInteger). Even when I convert the table field with CBOOL in the query, it still returns type dbInteger.
I want to return the data type as dbBoolean. Right now, I have no native Integer types for use as numbers in my DB so I can sort of accommodate it but it's less than ideal. Is there a way of determining or forcing the query to return some flag so that when I convert the field with CBOOL I can identify it?
I have a pseudo "boolean" type in a table defined as number, integer and with field type 106.
The issue I have is that when I run a query on the table, the data type always returns as Integer (type 3, dbInteger). Even when I convert the table field with CBOOL in the query, it still returns type dbInteger.
I want to return the data type as dbBoolean. Right now, I have no native Integer types for use as numbers in my DB so I can sort of accommodate it but it's less than ideal. Is there a way of determining or forcing the query to return some flag so that when I convert the field with CBOOL I can identify it?