Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change values of check box 1

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
Is there any way to change the values of a check box from 0 or -1 to whatever the user wants?

thanks!
 
No. Check Boxes are Boolean entities. Only the two values (0/-1) are possible: (also expressed as True/False -or- On/Off etc....)
 
You can set the field to display Yes/No, True/False, On/Off. If you want to display other values, you can create a text box with an IIF statement: IIF(chkbx=-1,"True value","False Value") where chkbx is the name of the checkbox field and "True Value" and "False Value" are the labels you want to use.

If you want to STORE values other than -1 and 0, then you will have to use a text or numeric Data Type.
 
one more addition to this. You can set up an option group using check boxes and then via code set the value

select case frame1
case 1
field.value = "this"
case 2
field.value = "that"
case 3
filed.value = "anythingelse"
end select
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top