473,804 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3887
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_colu mn=-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_colu mn 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:::mgf0 0 <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/AwUBRwwtn4echKq OuFEgEQKSvQCdGc dd23rBWNTY4wNG3 WYXeH27K9wAoMzV
iX9aLbfsmMGN1J6 h00t6pnan
=NFf6
-----END PGP SIGNATURE-----
Oct 10 '07 #2
On Oct 10, 11:40 am, MGFoster <m...@privacy.c omwrote:
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_colu mn=-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_colu mn 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:::mgf0 0 <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/AwUBRwwtn4echKq OuFEgEQKSvQCdGc dd23rBWNTY4wNG3 WYXeH27K9wAoMzV
iX9aLbfsmMGN1J6 h00t6pnan
=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.c omwrote:
>>chelt...@gmai l.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_colu mn=-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_colu mn 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:::mg f00 <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/AwUBRwwtn4echKq OuFEgEQKSvQCdGc dd23rBWNTY4wNG3 WYXeH27K9wAoMzV
iX9aLbfsmMGN1 J6h00t6pnan
=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.goog legroups.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
353
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. Actually, the class I'm serializing is two steps down in the inheritance ladder. It's got a parent class which also has a parent class :( All those classes in the hierarchy are Xml Serializable, and I'd think that it should be obvious that all...
7
5494
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) { Byte bytearrayinput = StringAndByteManipulation.ConvertStringToByteArray(textToEncrypt); //DES instance System.Security.Cryptography.TripleDESCryptoServiceProvider des = new
2
6074
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 BinaryFormatter stream. " } I looked at the serialized string vs whats passed into the deserialize
0
1088
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) application that calls this function in a button click event: --------------------------------------------------------- private void button1_Click(object sender, System.EventArgs e)
1
2137
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 parsing was completed.# The second solution is functionall - I am using in this solution FileStream - everything works fine !! I want to use MemoryStream instead of FileStrem Can somebody tells me where I have problem ? I am using the same...
9
5763
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 call it Express for simplicity). I have, to try to simplify things, put the exact same DB on two systems, one running MSDE and one running Express. Both have 2 Ghz processors (one Intel, one AMD), both have a decent amount of RAM (Intel system...
6
3272
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 to the function in the container. I allocate (and free in c) arrays to get garbage collection in both C and C#. After a few seconds I get an exception. I assume GarbageCollector moves the delegate (or collects is) and when I don't find it in C...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10351
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9174
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.