Results 1 to 2 of 2
  1. #1
    Maverick1501 is offline Novice
    Windows XP Access 2000
    Join Date
    Mar 2010
    Posts
    6

    Question less than


    Hi,

    I'm thinking this is quite simple, but am fairly new to access and still learning...!

    I have a table with a list of products including 2 columns titled 'quantity' and 'minimum quantity'. I would like to create a query whereby it will show all lines that have a quantity that is less than the minumum quantity.

    I can create a query which shows lines that have a quantity less than 'x' amount, but different products will have different minimum quantities.

    Any ideas?

    Thanks.

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Add a new column to the query and in the field type something like this:

    LessThan: IIf([quantity]<[minimum quantity],1,0)

    Now in the criteria for that feild put 1

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums