From: meangene on 19 Feb 2010 11:22 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!
From: Ken Snell on 19 Feb 2010 11:28 SELECT * FROM YourTableName WHERE YourFieldName Mod 4 <> 0; -- Ken Snell http://www.accessmvp.com/KDSnell/ "meangene" <meangene(a)discussions.microsoft.com> wrote in message news:2684394D-463B-4804-970F-79205F41C039(a)microsoft.com... > 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!
From: Jerry Whittle on 19 Feb 2010 11:30 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!
From: Jerry Whittle on 19 Feb 2010 13:03 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" <meangene(a)discussions.microsoft.com> wrote in message > news:2684394D-463B-4804-970F-79205F41C039(a)microsoft.com... > > 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! > > > . >
From: meangene on 19 Feb 2010 13:43 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" <meangene(a)discussions.microsoft.com> wrote in message > > news:2684394D-463B-4804-970F-79205F41C039(a)microsoft.com... > > > 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! > > > > > > . > >
|
Pages: 1 Prev: Importing Excel data into Access? Next: summarize data in access 2007 |