A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Yes/No column in Datasheet view



 
 
Thread Tools Display Modes
  #1  
Old April 17th, 2008, 04:07 PM posted to microsoft.public.access.forms
mscertified
external usenet poster
 
Posts: 835
Default Yes/No column in Datasheet view

I have a Yes/No column in a datasheet view. When I click in the column Yes
changes to -1 and No changes to 0. Why does it do this and can I prevent it?
I'd like to be able to choose Yes or No from a drop-down, is this possible?
Thanks.
  #2  
Old April 17th, 2008, 05:15 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Yes/No column in Datasheet view

A Yes/No data type is known as a Boolean data type. The actual values are 0
for No and -1 for Yes. Yes and No have no meaning, however, True and False
are Access constants that return the corresponding values.
In the properties dialog for the control, select the format tab and use the
dropdown to select Yes/No. Those values will then show, but the underlying
field will still be 0 and -1.
--
Dave Hargis, Microsoft Access MVP


"mscertified" wrote:

I have a Yes/No column in a datasheet view. When I click in the column Yes
changes to -1 and No changes to 0. Why does it do this and can I prevent it?
I'd like to be able to choose Yes or No from a drop-down, is this possible?
Thanks.

  #3  
Old April 17th, 2008, 08:54 PM posted to microsoft.public.access.forms
mscertified
external usenet poster
 
Posts: 835
Default Yes/No column in Datasheet view

I already have Format set to Yes/No, I tried changing it to True/False but it
makes no difference. As soon as I click in the column the value changes to -1
or 0. That is not very user-friendly. In a datasheet, is there no way to just
show the logical values rather than the underlying value?

"Klatuu" wrote:

A Yes/No data type is known as a Boolean data type. The actual values are 0
for No and -1 for Yes. Yes and No have no meaning, however, True and False
are Access constants that return the corresponding values.
In the properties dialog for the control, select the format tab and use the
dropdown to select Yes/No. Those values will then show, but the underlying
field will still be 0 and -1.
--
Dave Hargis, Microsoft Access MVP


"mscertified" wrote:

I have a Yes/No column in a datasheet view. When I click in the column Yes
changes to -1 and No changes to 0. Why does it do this and can I prevent it?
I'd like to be able to choose Yes or No from a drop-down, is this possible?
Thanks.

  #4  
Old April 17th, 2008, 08:58 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Yes/No column in Datasheet view

If that is not working, I don't know another way.
--
Dave Hargis, Microsoft Access MVP


"mscertified" wrote:

I already have Format set to Yes/No, I tried changing it to True/False but it
makes no difference. As soon as I click in the column the value changes to -1
or 0. That is not very user-friendly. In a datasheet, is there no way to just
show the logical values rather than the underlying value?

"Klatuu" wrote:

A Yes/No data type is known as a Boolean data type. The actual values are 0
for No and -1 for Yes. Yes and No have no meaning, however, True and False
are Access constants that return the corresponding values.
In the properties dialog for the control, select the format tab and use the
dropdown to select Yes/No. Those values will then show, but the underlying
field will still be 0 and -1.
--
Dave Hargis, Microsoft Access MVP


"mscertified" wrote:

I have a Yes/No column in a datasheet view. When I click in the column Yes
changes to -1 and No changes to 0. Why does it do this and can I prevent it?
I'd like to be able to choose Yes or No from a drop-down, is this possible?
Thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.