Re: Filter by form problem with Yes/No Data and SQL Server
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 20:45:49 -0500
Jim Mandala wrote:
Thanks for the reply. I forgot to mention that I am using ODBC to
connect to the SQL server.
The Checkboxes on the normal Form map to 0's and 1's in the data
table. I.e. True = 1. However, when I use the Access' "Filter By
Form" function, it seems to open a 'copy' of the form. The Checkboxes
on this form automatically create a filter, but every checked Checkbox
creates a True = -1; which is the Access standard for True/False data.
Two different data standards... Same Microsoft... Does Bill Gates have
too much money?
Yep, I've seen this issue and not just in filter-by-form. The only 100%
reliable tests for a bit field from Access is =0 and <>0. Testing for -1
often does not work and testing for 1 often does not work. Yes/No,
True/False, etc., are equally problematic.
When testing a CheckBox *control* bound to a bit field you can usually use
any of the normal tests as you would with an Access table, but when testing
the actual field value just stick with =0 or <>0. They always work.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Filter by form problem with Yes/No Data and SQL Server
- From: Larry Linson
- Re: Filter by form problem with Yes/No Data and SQL Server
- References:
- Filter by form problem with Yes/No Data and SQL Server
- From: Jim Mandala
- Re: Filter by form problem with Yes/No Data and SQL Server
- From: lyle
- Re: Filter by form problem with Yes/No Data and SQL Server
- From: Jim Mandala
- Filter by form problem with Yes/No Data and SQL Server
- Prev by Date: Re: SQL Server Anxiety
- Next by Date: Re: Remote Desktop Connection
- Previous by thread: Re: Filter by form problem with Yes/No Data and SQL Server
- Next by thread: Re: Filter by form problem with Yes/No Data and SQL Server
- Index(es):
Relevant Pages
|