Results 1 to 4 of 4
  1. #1
    mikelaccess is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2017
    Posts
    5

    Form locked when using calculated field

    Hi all,



    I have a problem with a form, I can not edit the existing records or add a new one.

    This problem arises when I add a calculated field in the origin of data of the form.

    This calculated field is complex: Open Actions: Count (IF([Failure_Actions]![Completed]=False,1)) and I need to defined as "Expresion" in the "Total" row of the data origin.

    When I put this calculated field it gets locked.

    If it is just a calculated field it is ok, the problem is when I use it as "Expresion".

    Any idea hoe to solve it?

    Regards,
    Mikel

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Doesn't the count function in access expect a string representing something to count

    eg count(*) or count [fieldname]

  3. #3
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Note that "Count" is usually used in Aggregate Queries, and Aggregate Queries are not updateable.
    See: http://allenbrowne.com/ser-61.html

  4. #4
    mikelaccess is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2017
    Posts
    5
    Ok, thanks very much.
    I will do it trouhg VBA code.

    Regards!

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

Similar Threads

  1. Replies: 2
    Last Post: 12-30-2014, 01:32 PM
  2. Replies: 1
    Last Post: 08-25-2014, 01:23 PM
  3. Calculated Field in Form
    By jkbyerly in forum Forms
    Replies: 15
    Last Post: 02-20-2014, 10:20 PM
  4. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  5. Calculated field for table not form
    By cheyanne in forum Access
    Replies: 1
    Last Post: 01-27-2012, 07:29 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