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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue displaying Yes/No field. 1

Status
Not open for further replies.

egstatus

Programmer
Apr 14, 2005
143
0
0
US
Hi Everyone.
I have a Yes/No Field for which I store the values as -1/0.
I display the field in a combobox and they are displayed as Yes/No. The combo box has a list value with 2 entries, "Yes" and "No" with a Default of 'No'. Entering the information in the combobox work as intended, However if I click inside the combobox I see either a 0 or -1. As soon as I leave the combobox the combobox displays either Yes/No. How can I prevent showing 0/-1 when user clicks inside the combobox?

Any Idea why access shows 0 or -1 if I click inside the combobox?


Thanks

EGStatus

PS because of form requirements I have to use a ComboBox.
 
I expect you need to change the row source and other properties of the combo box.

[pre]Row Source Type: Value List
Column Count: 2
Row Source: -1,"Yes",0,"No"
Bound Column: 1
Column Widths: 0, 0.5"[/pre]


Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top