Re: criteria
- From: Christina <Christina@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Jan 2009 15:09:02 -0800
Thanks. However maybe I did not fully explain. I am calculating payroll. I
want to calculate pay for all persons, but additionally bonus only for those
persons whose ID is not numeric. As it is it is calculating bonus for all
persons. I would like it to return 0 for persons whose ID is not numeric.
"John Spencer (MVP)" wrote:
You can use IsNumeric to test if the value is a number..
The calculated field would look like:
Field: NumbersOnly: IsNumeric([YourField])
The criteria for that would be True if you only wanted the number fields.
You could also use criteria directly against the field
Field: YourField
Criteria: Not Like "*![0-9]*"
That criteria should exclude any field that has a character that is not a
number character.
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Christina wrote:
I have a field in table , data type is text. For our own specific purpose
the ID in this field can either be a number or a letter. I would like to
return in a query, data from another linked table only if the data in the ID
field is a number. Is that possible?
Thanks
- Follow-Ups:
- Re: criteria
- From: John Spencer
- Re: criteria
- References:
- criteria
- From: Christina
- criteria
- Prev by Date: Merging two rows into one
- Next by Date: RE: Merging two rows into one
- Previous by thread: criteria
- Next by thread: Re: criteria
- Index(es):
Relevant Pages
|