If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query Results Where Qty Shipped is not Divisable by 4
How would I construct a query to return all invoices where the qty shipped
for a specific item is not divisable by 4? Really its the divisable by 4 part need assistance with. Thanks! |
#2
|
|||
|
|||
Query Results Where Qty Shipped is not Divisable by 4
SELECT *
FROM YourTableName WHERE YourFieldName Mod 4 0; -- Ken Snell http://www.accessmvp.com/KDSnell/ "meangene" wrote in message ... How would I construct a query to return all invoices where the qty shipped for a specific item is not divisable by 4? Really its the divisable by 4 part need assistance with. Thanks! |
#3
|
|||
|
|||
Query Results Where Qty Shipped is not Divisable by 4
Interesting question! Put something like this in the field of the query with
the correct field name in place of ID: Not4: [ID]/4 In the criteria put the following again with the proper field name: Int([ID]/4) -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "meangene" wrote: How would I construct a query to return all invoices where the qty shipped for a specific item is not divisable by 4? Really its the divisable by 4 part need assistance with. Thanks! |
#4
|
|||
|
|||
Query Results Where Qty Shipped is not Divisable by 4
Much nicer than my solution.
-- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "Ken Snell" wrote: SELECT * FROM YourTableName WHERE YourFieldName Mod 4 0; -- Ken Snell http://www.accessmvp.com/KDSnell/ "meangene" wrote in message ... How would I construct a query to return all invoices where the qty shipped for a specific item is not divisable by 4? Really its the divisable by 4 part need assistance with. Thanks! . |
#5
|
|||
|
|||
Query Results Where Qty Shipped is not Divisable by 4
Jerry and Ken - Thank you both for the response!
"Jerry Whittle" wrote: Much nicer than my solution. -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "Ken Snell" wrote: SELECT * FROM YourTableName WHERE YourFieldName Mod 4 0; -- Ken Snell http://www.accessmvp.com/KDSnell/ "meangene" wrote in message ... How would I construct a query to return all invoices where the qty shipped for a specific item is not divisable by 4? Really its the divisable by 4 part need assistance with. Thanks! . |
Thread Tools | |
Display Modes | |
|
|