Re: Filter by form problem with Yes/No Data and SQL Server
- From: lyle <lyle.fairfield@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 08:46:17 -0700 (PDT)
On Mar 28, 10:40 am, Jim Mandala <mand...@xxxxxxxxxxxxxxx> wrote:
Using Access 2003 front end; SQL Server 2005 Back end:
I have a complex form that has lots of data fields including about
thirty or so checkboxes storing Yes/No data that I would like my users
to be able to use the Filter by Form functionality with to create a
"Custom" query.
This works perfectly fine when I filter on a text field. Also, this
works perfectly fine for all data with an Access Back end. When I use
boolean data and my SQL server back end, however, the filter stops
working. I understand that the SQL server stores the Yes as "1" while
Access, and my "Filter Form" uses "-1" for Yes.
Clicking on a box in the Filter by Form creates a Me.Filter string
which looks like "CheckBox7 = -1". I don't really understand this,
since the checkbox on the actual Form stores a value of 1 in the SQL
table.
Is there a way I can get the "Filter By Form" to work with Boolean
Data?
Thanks!
SQL Server Bit fields are 0 or 1. (I suppose anything bit is 0 or 1
for that matter.) Is that extended to your checkbox on your form?
Don't know but you might try it.
.
- Follow-Ups:
- Re: 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
- References:
- 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: Limited in Exporting Access to Excel to 65,000 Rows
- Next by Date: Re: Conditional Running Sum
- Previous by thread: 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
|