Results 1 to 2 of 2
  1. #1
    jjsande1492 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    May 2018
    Posts
    38

    Calculated Field coming up as invalid

    Hello.

    I am trying to create a calculated field in a table to count the number of blank fields for each record. However, every iteration of the calculation I do comes up as invalid.

    I've tried:
    Code:
    IIf(IsNull([SKU])=True,1,0)+IIf(IsNull([Part_Number])=True,1,0)+IIf(IsNull([Description])=True,1,0)
    and

    Code:
    IIf(IsNull([SKU]),1,0)+IIf(IsNull([Part_Number]),1,0)+IIf(IsNull([Description]),1,0)
    and

    Code:
    IIf(Len([SKU])=0,1,0)+IIf(Len([Part_Number])=0,1,0)+IIf(Len([Description])=0,1,0)
    What am I doing wrong?



    Thanks!

  2. #2
    jjsande1492 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    May 2018
    Posts
    38
    Update:

    It appears that a data macro I had on the table was preventing the calculated field from working. The macro prevents updates to a record if one field is populated. Removing this macro allows the new field to calculate.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2017, 05:59 AM
  2. Replies: 1
    Last Post: 04-12-2017, 07:39 AM
  3. #Name? Error coming after field calculation
    By aparnawangu in forum Forms
    Replies: 1
    Last Post: 11-23-2015, 05:04 AM
  4. Replies: 3
    Last Post: 05-26-2013, 08:57 AM
  5. Replies: 2
    Last Post: 04-27-2010, 01:25 PM

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