Validation question

  • Thread starter Thread starter Reggie
  • Start date Start date
R

Reggie

I'm using fields in my table that require a Yes/No answer.
Does anyone know if there is a way to assign a
mathematical value to this type of field if the user
selects Yes. For example the user selects Yes and that Yes
answer is worth 10 Points. Any help would be greatly
appreciated.

Thanks
Reggie.
 
Well, in Yes/No fields (in Access), Yes = -1 and No = 0 (that's what is
actually stored) Therefore the formula Abs(MyYesNoField) *10 will return 10
for a yes answer.
 
Thanks Roger, I'll try that

Reggie
-----Original Message-----
Well, in Yes/No fields (in Access), Yes = -1 and No = 0 (that's what is
actually stored) Therefore the formula Abs(MyYesNoField) *10 will return 10
for a yes answer.

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org




.
 
Great idea... I had to make a slight modification though to get it to work.

In query design view:

MyExpressionName: Abs([MyYesNoField])*10
 

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