Change value from Y to Yes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a database with a table linked to an external source. Several of the
fields contain yes or no answers represented by a Y or N, which I want to
show in a form as a tick box. Is it possible to convert the Y and N results
into something that I can use in a tick box?

Thanks

David
 
Use an expression similar to this as the control source of the checkbox (so
long as it's for display only):

=IIf([FieldName]="Y", True, False)
 
David,

As another option for the checkbox's Control Source...
=([FieldName]="Y")
;-)
 
Hi Ken

Thanks for the information. I tried your suggestion and it worked a treat.

Regards

David

Ken Snell said:
Use an expression similar to this as the control source of the checkbox (so
long as it's for display only):

=IIf([FieldName]="Y", True, False)

David Ewer said:
I have a database with a table linked to an external source. Several of the
fields contain yes or no answers represented by a Y or N, which I want to
show in a form as a tick box. Is it possible to convert the Y and N
results
into something that I can use in a tick box?

Thanks

David
 
Hi Steve

Thanks for the information, I'll bear it in mind.

Regards

David

Steve Schapel said:
David,

As another option for the checkbox's Control Source...
=([FieldName]="Y")
;-)

--
Steve Schapel, Microsoft Access MVP

Use an expression similar to this as the control source of the checkbox (so
long as it's for display only):

=IIf([FieldName]="Y", True, False)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top