dbTalk Databases Forums  

checkbox field customization

comp.database.ms-access comp.database.ms-access


Discuss checkbox field customization in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew
 
Posts: n/a

Default checkbox field customization - 10-21-2003 , 04:24 PM






I have a checkbox field called Active, with a yes/no check for whether
a customer is active. Is there a way that I can keep using a
checkbox, but the value isn't yes/no, instead it is
CustomerActive/CustomerInactive?

Reply With Quote
  #2  
Old   
Jack
 
Posts: n/a

Default Re: checkbox field customization - 10-21-2003 , 06:55 PM






Can't you just change the label to read whatever your want ?? It's the value
that is stored...Yes/No True/False...

Jack
"Andrew" <AndrewEgan (AT) att (DOT) net> wrote

Quote:
I have a checkbox field called Active, with a yes/no check for whether
a customer is active. Is there a way that I can keep using a
checkbox, but the value isn't yes/no, instead it is
CustomerActive/CustomerInactive?



Reply With Quote
  #3  
Old   
Andrew
 
Posts: n/a

Default Re: checkbox field customization - 10-22-2003 , 04:04 PM



I could just change the label, but I export this database to Outlook,
which sorts the customers as active or inactive, so I need those terms
exported, as opposed to the words yes or no being exported.



"Jack" <jfeubank (AT) shaw (DOT) ca> wrote

Quote:
Can't you just change the label to read whatever your want ?? It's the value
that is stored...Yes/No True/False...

Jack
"Andrew" <AndrewEgan (AT) att (DOT) net> wrote in message
news:be34760c.0310211324.1647c15b (AT) posting (DOT) google.com...
I have a checkbox field called Active, with a yes/no check for whether
a customer is active. Is there a way that I can keep using a
checkbox, but the value isn't yes/no, instead it is
CustomerActive/CustomerInactive?

Reply With Quote
  #4  
Old   
Jack Stockton
 
Posts: n/a

Default Re: checkbox field customization - 10-22-2003 , 05:17 PM



I have had to store T and F in a table, because of another application
that also accessed the data and did not support Yes/No. I controled
the state of the visible control in code with the value in a hidden
field, when the form was opened or the control changed. Something
like this:

Private Sub Form_Open(Cancel As Integer)
If Me!MyHiddenControl = "CustomerActive" Then
Me!VisbleControl = True
Else
Me!VisbleControl = False
End If
End Sub


Private Sub VisbleControl_Change()
If Me!VisbleControl Then
Me!MyHiddenControl = "CustomerActive"
Else
Me!MyHiddenControl = "CustomerInactive"
End If
End Sub


AndrewEgan (AT) att (DOT) net (Andrew) wrote in message news:<be34760c.0310211324.1647c15b (AT) posting (DOT) google.com>...
Quote:
I have a checkbox field called Active, with a yes/no check for whether
a customer is active. Is there a way that I can keep using a
checkbox, but the value isn't yes/no, instead it is
CustomerActive/CustomerInactive?

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.