Results 1 to 2 of 2
  1. #1
    taylorsmith8 is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    7

    IF THEN Value - Please Help

    I am not a DB expert by any means. That said, I need to do the following, in either the Query based on a table or the Form that is based on the Query, and could use some suggestions:

    Field: Box Type (BB bankers box, BO box other, NB not box)
    Field: L:
    Field: W:


    Field: H:

    What I need to have happen is that if [Box Type]="BB" then [L:] populates with 15.5, [W:] with 12.5 and [H:] with 10.5

    If [Box Type] is "BO" or "NB" then I need to be able to enter custom data

    I am stumped. Seems like this should be easy, and maybe it is and I am just missing it. I tried the following in the Field section of each [L:], [W:] and {H:] : (for [L:])... =IIF([Box Type]="BB","15.5") and that worked for all of the Box Type BB records, but then I couldn't manually enter any data at all in any of the not BB records.

    I would very much appreciate any help at all. My thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Please don't post the same question more than once:

    https://www.accessforums.net/access/...elp-13012.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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