boolean values and MS Access

boolean values and MS Access

am 25.05.2007 01:08:25 von David Gardner

--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have a boolean column in one of my tables in pgsql. What I would like to =
do is:
SELECT * FROM public_table WHERE public_table.bShowReport=3DTRUE;

But I get a data mis-match, although this query works fine from pgAdmin3.

I know Access stores bools a little weird so I have tried public_table.bSho=
wReport=3D-1; and public_table.bShowReport=3D"TRUE"

I have tried this as a pass-through query, and it works but I want to feed =
this query into a report and Access limits your ability to use sub-reports =
if the parent report is based upon a pass-through query.

I have played around with the "Bools as Char" and "True is -1" settings.
With "Bools as Char" selected I run into problems when Access attempts to e=
dit the field. With "True is -1" I get ODBC Error #7 boolean:=3Dinteger

I have tried this with 8.02.04 and 8.02.02. I am hoping there is just some =
little bit that I am missing.
---
David Gardner, IT
The Yucaipa Companies
(310) 228-2855


--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

hemas-microsoft-com:office:word" xmlns:st1=3D"urn:schemas-microsoft-com:off=
ice:smarttags" xmlns=3D"http://www.w3.org/TR/REC-html40">




name=3D"PersonName"/>









0.0pt;
font-family:Arial'>I have a boolean column in one of my tables in pgsql. Wh=
at I
would like to do is:



> style=3D'font-size:10.0pt;font-family:Arial'>SELECT * FROM public_table WHE=
RE public_table.bShowReport=3DTRUE;



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>But I get a data mis-match, although this query works fi=
ne
from pgAdmin3.



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I know Access stores bools a little weird so I have trie=
d public_table.bShowReport=3D-1;
and public_table.bShowReport=3D”TRUE”
<=
/p>

0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have tried this as a pass-through query, and it works =
but
I want to feed this query into a report and Access limits your ability to u=
se
sub-reports if the parent report is based upon a pass-through query. o:p>



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have played around with the “Bools as Char”=
; and
“True is -1” settings.



0.0pt;
font-family:Arial'>With “Bools as Char” selected I run into
problems when Access attempts to edit the field. With “True is -1R=
21;
I get ODBC Error #7 boolean:=3Dinteger



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have tried this with 8.02.04 and 8.02.02. I am hoping
there is just some little bit that I am missing.
p>

0.0pt;
font-family:Arial'>---



l> style=3D'font-size:10.0pt;font-family:Arial'>David Gardner st1:PersonName> size=3D2 face=3DArial>, =
IT



0.0pt;
font-family:Arial'>The Yucaipa Companies



0.0pt;
font-family:Arial'>(310) 228-2855
style=3D'font-size:10.0pt'>



0.0pt;
font-family:Arial'> 









--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328DFyucexlaxyuc wi_--

Re: boolean values and MS Access

am 25.05.2007 02:22:45 von David Gardner

--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328E1yucexlaxyuc wi_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Please dis-regard my email. I found someone with a similar problem and the =
solution in the mailing list archives.
http://archives.postgresql.org/pgsql-general/2006-12/msg0041 5.php

Apologies for not doing this before I posted.

---
David Gardner, IT
The Yucaipa Companies
(310) 228-2855
________________________________
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.o=
rg] On Behalf Of David Gardner
Sent: Thursday, May 24, 2007 4:08 PM
To: 'pgsql-odbc@postgresql.org'
Subject: [ODBC] boolean values and MS Access

I have a boolean column in one of my tables in pgsql. What I would like to =
do is:
SELECT * FROM public_table WHERE public_table.bShowReport=3DTRUE;

But I get a data mis-match, although this query works fine from pgAdmin3.

I know Access stores bools a little weird so I have tried public_table.bSho=
wReport=3D-1; and public_table.bShowReport=3D"TRUE"

I have tried this as a pass-through query, and it works but I want to feed =
this query into a report and Access limits your ability to use sub-reports =
if the parent report is based upon a pass-through query.

I have played around with the "Bools as Char" and "True is -1" settings.
With "Bools as Char" selected I run into problems when Access attempts to e=
dit the field. With "True is -1" I get ODBC Error #7 boolean:=3Dinteger

I have tried this with 8.02.04 and 8.02.02. I am hoping there is just some =
little bit that I am missing.
---
David Gardner, IT
The Yucaipa Companies
(310) 228-2855


--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328E1yucexlaxyuc wi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"http://ww=
w.w3.org/TR/REC-html40">


>

namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"Person=
Name"/>









=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Please dis-regard my email. I found
someone with a similar problem and the solution in the mailing list archive=
s.



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> href=3D"http://archives.postgresql.org/pgsql-general/2006-12 /msg00415.php">=
http://archives.postgresql.org/pgsql-general/2006-12/msg0041 5.php<=
/o:p>



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Apologies for not doing this before I
posted.



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 





=3D'font-size:
10.0pt;font-family:Arial;color:navy'>---
pan
style=3D'color:navy'>



y
face=3DArial> >David
Gardner
rial> style=3D'font-size:10.0pt;font-family:Arial;color:navy'>, IT<=
font
color=3Dnavy>



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The Yucaipa Companies
nt
color=3Dnavy>



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>(310) 228-2855
=3D2> style=3D'font-size:10.0pt'>







e=3D3
face=3D"Times New Roman">






ze:10.0pt;
font-family:Tahoma;font-weight:bold'>From:
face=3DTahoma>
pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] > style=3D'font-weight:bold'>On Behalf Of
on">David
Gardner


Sent: Thursday, May 24, 2007=
4:08
PM

To: 'pgsql-odbc@postgresql.o=
rg'

Subject: [ODBC] boolean valu=
es and
MS Access





'font-size:
12.0pt'> 



0.0pt;
font-family:Arial'>I have a boolean column in one of my tables in pgsql. Wh=
at I
would like to do is:



> style=3D'font-size:10.0pt;font-family:Arial'>SELECT * FROM public_table WHE=
RE
public_table.bShowReport=3DTRUE;



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>But I get a data mis-match, although this query works fi=
ne
from pgAdmin3.



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I know Access stores bools a little weird so I have trie=
d
public_table.bShowReport=3D-1; and public_table.bShowReport=3D”TRUE&#=
8221;



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have tried this as a pass-through query, and it works =
but
I want to feed this query into a report and Access limits your ability to u=
se
sub-reports if the parent report is based upon a pass-through query. o:p>



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have played around with the “Bools as Char”=
; and “True is
-1” settings.



0.0pt;
font-family:Arial'>With “Bools as Char” selected I run into pro=
blems when
Access attempts to edit the field. With “True is -1” I get ODBC=
Error #7
boolean:=3Dinteger



0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'>I have tried this with 8.02.04 and 8.02.02. I am hoping
there is just some little bit that I am missing.
p>

0.0pt;
font-family:Arial'>---



l> style=3D'font-size:10.0pt;font-family:Arial'>David Gardner st1:PersonName> size=3D2 face=3DArial>, =
IT



0.0pt;
font-family:Arial'>The Yucaipa Companies



0.0pt;
font-family:Arial'>(310) 228-2855
style=3D'font-size:10.0pt'>



0.0pt;
font-family:Arial'> 









--_000_C975BFE03CC5DE4999143A5BEA9FB51501F54328E1yucexlaxyuc wi_--

Re: boolean values and MS Access

am 25.05.2007 16:13:35 von Richard Broersma Jr

--- David Gardner wrote:

> Please dis-regard my email. I found someone with a similar problem and =
the solution in the
> mailing list archives.
> http://archives.postgresql.org/pgsql-general/2006-12/msg0041 5.php
>=20
> Apologies for not doing this before I posted.

this is what I found that worked for me:
http://archives.postgresql.org/pgsql-odbc/2006-09/msg00103.p hp

however, MS-Access didn't recognized to boolean fields as yes/no field, s=
o when I used a form
creation wizard to start a form, it would used text boxes instead of chec=
k boxes. I had to
manually replace these controls myself.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Re: boolean values and MS Access

am 25.05.2007 16:25:10 von igxnews

I use this function and operator :

http://archives.postgresql.org/pgsql-general/2001-10/msg0095 3.php

it just perfectly works with these odbc params :
True is -1 -> checked
Bools as Char -> not checked

--
Guillaume `ioguix` de Rorthais

Richard Broersma Jr wrote:
> --- David Gardner wrote:
>
>> Please dis-regard my email. I found someone with a similar problem and the solution in the
>> mailing list archives.
>> http://archives.postgresql.org/pgsql-general/2006-12/msg0041 5.php
>>
>> Apologies for not doing this before I posted.
>
> this is what I found that worked for me:
> http://archives.postgresql.org/pgsql-odbc/2006-09/msg00103.p hp
>
> however, MS-Access didn't recognized to boolean fields as yes/no field, so when I used a form
> creation wizard to start a form, it would used text boxes instead of check boxes. I had to
> manually replace these controls myself.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster