Results 1 to 2 of 2
  1. #1
    hoachen is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    17

    In query: check criteria with default value

    I am not sure how to accomplish this and need all of your expertise and guide me! Thanks!

    Table1
    Combined key: smimark (first 3 letter of smith and first 4 letters of Marker)
    Item#: 123456
    Qty: 2
    Combined key: MarJaso (first 3 letter of Mary and first 4 letters of Jason)


    Item#: 44587
    Qty: 5

    Combined key: MarJaso (first 3 letter of Mary and first 4 letters of Jason)
    Item#: 336363
    Qty: 3
    In the query I would like to be able to check to the combined key. If the combined key not the same put a default value of -99. If there are same combined key then I would like it decease the default value on second record to -98 and so forth (-97) if there are more same combined key.
    Currently,I can put only the default value of -99 by Field: Exp1: val(-99).
    Is there a way to do it?
    Thanks

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I think you got the carriage before the horse here. Your combined keys are not unique. That defeats the purpose of a key. What exactly are you trying to accomplish by putting those values in?

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

Similar Threads

  1. Replies: 7
    Last Post: 02-06-2012, 11:54 AM
  2. Query default to Pivot Table view
    By Theremin_Ohio in forum Access
    Replies: 1
    Last Post: 03-30-2011, 09:17 AM
  3. Default sizing query columns
    By 161 in forum Queries
    Replies: 0
    Last Post: 03-07-2011, 12:34 PM
  4. Replies: 1
    Last Post: 11-01-2010, 06:59 PM
  5. check box criteria?
    By kzoll@mindspring.com in forum Queries
    Replies: 3
    Last Post: 11-24-2009, 09:43 AM

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