Identify Non-Even Dollar Transactions

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

Guest

My (table) field is formatted as currency (Decimal places set to "Auto").
I'd like my query to filter all non-even dollar transactions ie: $65.55 but
not $65.00

I've tried Not Like "*.00" and Not Like "$*.00" but neither work.

What am I missing?
 
Enter something like this into the Field row in query design:
[MyField] - Int([MyField])

In the Criteria row under this, enter:
<> 0

Explanation:
Int() gives the whole number value.
The difference will be non-zero if cents exist.
 
Thank you for including both the answer and the explanation. That really
helps.

Works perfectly.

Thanks again.

Allen Browne said:
Enter something like this into the Field row in query design:
[MyField] - Int([MyField])

In the Criteria row under this, enter:
<> 0

Explanation:
Int() gives the whole number value.
The difference will be non-zero if cents exist.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

StephanieH said:
My (table) field is formatted as currency (Decimal places set to "Auto").
I'd like my query to filter all non-even dollar transactions ie: $65.55
but
not $65.00

I've tried Not Like "*.00" and Not Like "$*.00" but neither work.

What am I missing?
 

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