Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Editing Yes/No column

 
   Database Forums (Home) -> MS Access RSS
Next:  After replication, database size increased 4 time..  
Author Message
Dorian

External


Since: Nov 19, 2008
Posts: 8



(Msg. 1) Posted: Wed Dec 31, 2008 7:13 am
Post subject: Editing Yes/No column
Archived from groups: microsoft>public>access (more info?)

I have a Yes/No column which can be edited in continuous form view. The
values display as Yes or No. However, as soon as I click in the column Yes
changes to -1 and No changes to 0. This is VERY confusing to my users; is
there any way to prevent this and get a selection list of 'Yes' and 'No' to
change the setting rather than have to type in 0 or -1 ??? Thanks.
--
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".

 >> Stay informed about: Editing Yes/No column 
Back to top
Login to vote
Rick Brandt

External


Since: Nov 23, 2008
Posts: 36



(Msg. 2) Posted: Wed Dec 31, 2008 11:25 am
Post subject: Re: Editing Yes/No column [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 31 Dec 2008 07:13:01 -0800, Dorian wrote:

> I have a Yes/No column which can be edited in continuous form view. The
> values display as Yes or No. However, as soon as I click in the column
> Yes changes to -1 and No changes to 0. This is VERY confusing to my
> users; is there any way to prevent this and get a selection list of
> 'Yes' and 'No' to change the setting rather than have to type in 0 or -1
> ??? Thanks.

You need to use a different control (not a TextBox). Either...

ComboBox or ListBox with a RowSource showing "Yes" and "No" as choices in
a visible column but which has a hidden bound column with -1 and 0 values.

OptionGroup using RadioButtons or ToggleButtons labeled "Yes" and "No"
but with values corresponding to -1 and 0.

CheckBox. This is the most obvious and easiest to set up. Change from a
TextBox to a CheckBox and your done.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

 >> Stay informed about: Editing Yes/No column 
Back to top
Login to vote
Ken Sheridan

External


Since: Jul 16, 2005
Posts: 121



(Msg. 3) Posted: Wed Dec 31, 2008 11:25 am
Post subject: Re: Editing Yes/No column [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You don't actually need a hidden bound column for a combo box. Access
recognizes Yes and No as Boolean constants so a value list of Yes;No as the
RowSource and a format property of Yes/No for the control will suffice.

Ken Sheridan
Stafford, England

"Rick Brandt" wrote:

> On Wed, 31 Dec 2008 07:13:01 -0800, Dorian wrote:
>
> > I have a Yes/No column which can be edited in continuous form view. The
> > values display as Yes or No. However, as soon as I click in the column
> > Yes changes to -1 and No changes to 0. This is VERY confusing to my
> > users; is there any way to prevent this and get a selection list of
> > 'Yes' and 'No' to change the setting rather than have to type in 0 or -1
> > ??? Thanks.
>
> You need to use a different control (not a TextBox). Either...
>
> ComboBox or ListBox with a RowSource showing "Yes" and "No" as choices in
> a visible column but which has a hidden bound column with -1 and 0 values.
>
> OptionGroup using RadioButtons or ToggleButtons labeled "Yes" and "No"
> but with values corresponding to -1 and 0.
>
> CheckBox. This is the most obvious and easiest to set up. Change from a
> TextBox to a CheckBox and your done.
>
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>
 >> Stay informed about: Editing Yes/No column 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Record Editing - Another question - I'm sorry, I have one more issue regarding this post. As the code begins to loop through the controls, the control on the subform that has the focus will not allow me to change its enabled property. I tried creating a dummy control and setting the....

select records using forms to allow editing/deleting - I am trying to set up a form that will allow the user to type in the key to a record say Tag Id to then display that record (it is unique in the table) and allow them to either edit or delete that record. Can anyone help me? Thanks

Selecting a Column Which has MAX in Another - Good Day All, I will use the Northwind table "Order Details" as an example for what I am trying to do. I would like to obtain, for each order, the product ID which has the highest unit cost. I tried the simplest approach: SELECT [Orde...

How to fix column in datasheet - Is it poosible to fix column width of datasheet (subform)

Column History - Is it possible to modify the format of the comments history field. [Version: 6/11/2008 6:48:11 PM ]
   Database Forums (Home) -> MS Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]