datasheet view convert -1 to "Yes" and 0 to "No"

BennyLinton

Registered User.
Local time
Today, 10:49
Joined
Feb 21, 2014
Messages
263
I have a datasheet form "frmExpiredSub" listing the results of a query. For one textbox called "txtExpired" the values are integer -1 and 0. I want to either have this textbox display "Yes" for -1 and "No" for 0 or make this textbox invisible and have another textbox "txtExpiredVisible" pickup the value from "txtExpired" and convert it to "Yes" or "No". Any ideas? I've tried to use case statements in the loading of the form but so far no luck. Thanks!
 
the boolean field can be formated to show YES/NO
or -1/0
or TRUE/FALSE.

in a query , set the format property of the field.
 
Hi,

Use this formula:

IIF([txtExpired],"Yes","No")
 

Users who are viewing this thread

Back
Top Bottom