98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » Yes / No Field on Query
Yes / No Field on Query
Resolved · Urgent Priority · Version 2003
Lisa has attended:
Excel VBA Intro Intermediate course
Yes / No Field on Query
When you have a Yes/No field in a table and you make a query from the data - how do you only have the "yes" ones show up?
RE: Yes / No Field on Query
Hi Lisa,
Thank you for your post;
In a Form or Report consider the following, if for example you have the following fields: Taxable, Item Cost, Item quantity where Taxable is your yes/no field.
In the Detail section of the form I would create a textbox with the formula: IIf([Taxable]=-1,([Item_Cost]*[Quantity])*0,0) (note the change to -1 from 1) and call it say TaxableAmount.
-1 is a yes in an Access Database and 0 is a no.
Try that it should work, if not please come back, regards Pete
RE: Yes / No Field on Query
Hi Lisa
Thank you for your question
You simply need to enter yes into the criteria field of your query designer, under the relevant column.
Alternatively, you can enter -1 or 0.
Regards
Stephen
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |