473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with MS-Access 2003 Listbox display

At one of my client sites we noticed a few weeks ago that Listboxes
which previously showed "Yes" or "No" are now showing "-1" or "0". The
underlying tables and queries are displaying True/False fields
correctly and I suspect this problem is related to Service Pack 3.

I haven't been able to find any other posts on the Net about this
problem?

Has anyone else noticed this and more importantly, is there a solution?

Oct 10 '07 #1
4 3855
ch******@gmail.com wrote:
At one of my client sites we noticed a few weeks ago that Listboxes
which previously showed "Yes" or "No" are now showing "-1" or "0". The
underlying tables and queries are displaying True/False fields
correctly and I suspect this problem is related to Service Pack 3.

I haven't been able to find any other posts on the Net about this
problem?

Has anyone else noticed this and more importantly, is there a solution?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know what you mean by "The underlying tables and queries are
displaying True/False fields correctly...." (What's correct?) So, I
suggest you could change the ListBox's RowSource property to a SELECT
statement that includes an expression like this:

IIf(yes_no_column=-1, "Yes","No") As YesNo

for the table's Yes/No column (change the column name to your column
name).

If you allow NULLs in the Yes/No column (ugh) the expression would be
like this:

IIF(yes_no_column IS NULL,"UNK",IIf(yes_no_column=-1,"Yes","No"))
UNK stands for "unknown."

Relying on any control to "correctly" display the same format as the
source table is "iffy" at best. Who knows what may happen in the
future? It's always best to explicitly declare how you want the data to
be displayed.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRwwtn4echKqOuFEgEQKSvQCdGcdd23rBWNTY4wNG3WYXeH 27K9wAoMzV
iX9aLbfsmMGN1J6h00t6pnan
=NFf6
-----END PGP SIGNATURE-----
Oct 10 '07 #2
On Oct 10, 11:40 am, MGFoster <m...@privacy.comwrote:
chelt...@gmail.com wrote:
At one of my client sites we noticed a few weeks ago that Listboxes
which previously showed "Yes" or "No" are now showing "-1" or "0". The
underlying tables and queries are displaying True/False fields
correctly and I suspect this problem is related to Service Pack 3.
I haven't been able to find any other posts on the Net about this
problem?
Has anyone else noticed this and more importantly, is there a solution?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know what you mean by "The underlying tables and queries are
displaying True/False fields correctly...." (What's correct?) So, I
suggest you could change the ListBox's RowSource property to a SELECT
statement that includes an expression like this:

IIf(yes_no_column=-1, "Yes","No") As YesNo

for the table's Yes/No column (change the column name to your column
name).

If you allow NULLs in the Yes/No column (ugh) the expression would be
like this:

IIF(yes_no_column IS NULL,"UNK",IIf(yes_no_column=-1,"Yes","No"))

UNK stands for "unknown."

Relying on any control to "correctly" display the same format as the
source table is "iffy" at best. Who knows what may happen in the
future? It's always best to explicitly declare how you want the data to
be displayed.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRwwtn4echKqOuFEgEQKSvQCdGcdd23rBWNTY4wNG3WYXeH 27K9wAoMzV
iX9aLbfsmMGN1J6h00t6pnan
=NFf6
-----END PGP SIGNATURE-----
Agree, but all was well until about 3 weeks ago.

Yes, I can change the Rowsource for all affected Listboxes but I am
curious to know why this has suddenly changed? Service Pack 3 appears
to be the culprit!

Surely someone else has seen this problem?

PeCo

Oct 10 '07 #3
ch******@gmail.com wrote:
On Oct 10, 11:40 am, MGFoster <m...@privacy.comwrote:
>>chelt...@gmail.com wrote:
>>>At one of my client sites we noticed a few weeks ago that Listboxes
which previously showed "Yes" or "No" are now showing "-1" or "0". The
underlying tables and queries are displaying True/False fields
correctly and I suspect this problem is related to Service Pack 3.
>>>I haven't been able to find any other posts on the Net about this
problem?
>>>Has anyone else noticed this and more importantly, is there a solution?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't know what you mean by "The underlying tables and queries are
displaying True/False fields correctly...." (What's correct?) So, I
suggest you could change the ListBox's RowSource property to a SELECT
statement that includes an expression like this:

IIf(yes_no_column=-1, "Yes","No") As YesNo

for the table's Yes/No column (change the column name to your column
name).

If you allow NULLs in the Yes/No column (ugh) the expression would be
like this:

IIF(yes_no_column IS NULL,"UNK",IIf(yes_no_column=-1,"Yes","No"))

UNK stands for "unknown."

Relying on any control to "correctly" display the same format as the
source table is "iffy" at best. Who knows what may happen in the
future? It's always best to explicitly declare how you want the data to
be displayed.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRwwtn4echKqOuFEgEQKSvQCdGcdd23rBWNTY4wNG3WYXeH 27K9wAoMzV
iX9aLbfsmMGN1J6h00t6pnan
=NFf6
-----END PGP SIGNATURE-----


Agree, but all was well until about 3 weeks ago.

Yes, I can change the Rowsource for all affected Listboxes but I am
curious to know why this has suddenly changed? Service Pack 3 appears
to be the culprit!

Surely someone else has seen this problem?

PeCo
I created a table with a YN field. I set the format to nothing. I
created a form with a listbox. The field was displayed as 0 or -1. I
changed the format to Yes/No and it displayed Yes or No. Maybe
somebody's been changing formats.
Oct 10 '07 #4
Sky
It's likely this SP3 formatting bug for combo boxes and list boxes:

http://groups.google.com/group/micro...a6789bd55fe15d

No fix from Microsoft that I have seen.

Workaround: remove the underlying field format property in the table, or
reformulate the list box RowSource.

- Steve

<ch******@gmail.comwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
At one of my client sites we noticed a few weeks ago that Listboxes
which previously showed "Yes" or "No" are now showing "-1" or "0". The
underlying tables and queries are displaying True/False fields
correctly and I suspect this problem is related to Service Pack 3.

I haven't been able to find any other posts on the Net about this
problem?

Has anyone else noticed this and more importantly, is there a solution?

Oct 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Angelos Karantzalis | last post by:
Hi guys. I've come across a problem when I tried to serialize a class into xml, only to discover that the parent class's XML Serialization properties weren't included in the output xml. ...
7
by: c duden | last post by:
I am attempting to encrypt some text and be able to decrypt it at a later time. I have two methods to do this: public static Byte EncryptText(string textToEncrypt, string encryptionHash) {...
2
by: PCH | last post by:
I have 2 functions, one to serialize an object, and one to deserialize it. I can serialize just fine, the problem is when I try to deserialize it later... I get an error: {"Invalid...
0
by: CowPad | last post by:
Hello All, I have a problem with serializing structs so I made a small application here to demonstrate. Hopefully someone can explain this strange problem. I have a Windows (Forms)...
1
by: Pavel Pavel | last post by:
I have 2 solution to deserialize ArrayList which contains objects I am using for this MemoryStream, but MemoryStream is not functional - I receive always error #End of Stream encountered before...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
6
by: per9000 | last post by:
An interesting/annoying problem. I created a small example to provoke an exception I keep getting. Basically I have a C-struct (Container) with a function-pointer in it. I perform repeated calls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.