Results 1 to 4 of 4
  1. #1
    ali hawler is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    2

    ##how to update average if was 49 or 48##

    Hiii everybody
    I wanna is creating a table like this (Students Degree)





    ID Name Degree1 Degree2 Depart



    Then I have to create a Form depend on this table and must be a (command button) to update the (average) if was 49 or 48 to 50

    That is mean, I want to average data from the degree fields and then if the average was 49 or 48 should be 50 when I click on a button in a form .
    Nothing about 40 , 45 or 47 ...
    I already added a new field for average and calculated it , but when I want to update this field by using (update Query) access refuse that and tell me (nonupdatable field !!!!)
    So what should I do ???
    Please help me
    Please help me
    Very necessary
    Last edited by ali hawler; 08-17-2013 at 07:54 AM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You want to average data from the degree fields? What's so special about 49 and 48? What happens at 40, 45, 47? What would you be updating? I don't see a field for this result. Shouldn't save to table anyway, just calculate when needed.
    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
    ali hawler is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    2
    Quote Originally Posted by June7 View Post
    You want to average data from the degree fields? What's so special about 49 and 48? What happens at 40, 45, 47? What would you be updating? I don't see a field for this result. Shouldn't save to table anyway, just calculate when needed.
    Yes bro , I want to average data from the degree fields and then if the average was 49 or 48 should be 50 when I click on a button in a form . Nothing about 40 , 45 or 47 ...
    I already added a new field for average and calculated it , but when I want to update this field by using (update Query) access refuse that and tell me (nonupdatable field !!!!)
    so what should I do ???
    please help me

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Calculated fields are not 'updatable' by query - they calculate themselves as source data changes.

    As already stated, should not save this calculated value into table anyway.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

Similar Threads

  1. getting average
    By yiega in forum Queries
    Replies: 2
    Last Post: 05-31-2013, 03:18 AM
  2. Average of an Average
    By techherbie in forum Queries
    Replies: 1
    Last Post: 03-02-2013, 02:35 PM
  3. Replies: 11
    Last Post: 08-10-2012, 10:25 PM
  4. Average help please
    By C90RanMan in forum Programming
    Replies: 1
    Last Post: 08-01-2010, 12:14 PM
  5. Replies: 13
    Last Post: 05-28-2010, 11:57 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