Results 1 to 9 of 9
  1. #1
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18

    Create a calculation field in Access

    Hello to the professors
    I had a simple question about Access. Please help if you can.
    I use simple nouns to understand better.
    I have a table called "table" that has 4 fields.
    Something like this
    Hope to be understandable

    Field # 1 - Field # 2 - Field # 3 - Field # 4
    Name 1---- Name 2 ------ 4
    Name 2---- Name 1 ------ 1
    Name 3---- Name 2 ------ 3
    Name 4---- Name 1 ------ 2

    First, the members in field # 2 must find their value from field # 3
    For example: Name 1 = 2 + 1 = 3
    And the Name 2 = 4 + 3 = 7

    Now the field # 4 must be calculated automatically for field # 1, and names that do not have a value are equal to 0. Like below:

    Field# 4
    3
    7
    0
    0

    Is there a way to do this
    thanks for your help

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    your explanation makes no sense.
    is the value in [FLD 1] = "name 1" ...which is a string and has no value.

    can you explain in excel forumula:
    [fld 1]=[fld ?]+[fld ?]
    [fld 2]=[fld 3] + [fld ?]

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    First, the members in field # 2 must find their value from field # 3
    this cannot be done in a calculated field in a table, you need to use a query

    I do not understand your example, provide a better clarification of your data

  4. #4
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18
    excuseme for my bad explanation
    I want to use the sumif function between field one and field two, like excel
    You think my table has the same detail in excel
    Then we will have:
    = SUMIF ([field2]; [@ field1]; [field3])

  5. #5
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18
    Field one and the second field are of type text and field three and the fourth field of type number
    I want the above formula to be computed in the last field.

  6. #6
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18
    Field 1 members are Unicom
    And Field 2 members are derived from Field 1, but not Unicom

  7. #7
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18
    May you guide me?
    Thanks.

  8. #8
    m.vesali is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    18
    No one knows the solution?
    Let me know if my description is difficult!

  9. #9
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    nobody understands your requirement so as requested please provide real example data and clearly demonstrate what the calculation is. Your Sumif example would be a simple group by query in Access, but does not match the description of your requirement.

    Just a guess but this link perhaps asks the same question

    https://www.accessforums.net/showthr...364#post413364

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

Similar Threads

  1. Create a Calculation to Produce Text
    By DigitalAdrenaline in forum Access
    Replies: 6
    Last Post: 08-12-2018, 10:55 AM
  2. Replies: 6
    Last Post: 01-01-2018, 10:41 AM
  3. How to create an Iif field in Access 2013
    By buick1910 in forum Access
    Replies: 9
    Last Post: 10-27-2013, 05:59 PM
  4. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM
  5. Replies: 7
    Last Post: 12-30-2009, 11:03 AM

Tags for this Thread

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