Results 1 to 4 of 4
  1. #1
    engr_saud1 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    10

    #name?

    Hi Members,
    Am trying to add a calculation field "Status" (text box) to Assets template form i.e
    IF Asset item = X
    Status = present

    But am getting #name? in the text box

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    What do you mean by calculation field? Did you mean a calculation in a textbox ControlSource? Conditional expression in textbox uses IIf().

    Try:

    =IIf([Asset item] = "X", "present", "something else")

    If you want to save result to a field called 'Status', that requires VBA code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    engr_saud1 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    10
    Quote Originally Posted by June7 View Post
    What do you mean by calculation field? Did you mean a calculation in a textbox ControlSource? Conditional expression in textbox uses IIf().

    Try:

    =IIf([Asset item] = "X", "present", "something else")

    If you want to save result to a field called 'Status', that requires VBA code.

    Yes,
    I've tried putting a formula (IIF statement) in the control source of text box. But When I open form view. I see #name? in that box

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Do you have a field named [Asset item] in the form RecordSource?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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