Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2015
    Posts
    11

    How to insert calculated fields with range functions in Access??

    Hello to you all!! I had already posted a thread like this, but I've decided to make a video, since I think it would be easier for me to explain what I'm trying to achieve.



    So..here it is: https://www.youtube.com/watch?v=5NrjkKIh-c8

    Basically what I'm trying to do is insert a calculated field in Access with the kind of function you create with ctrl+shift+enter. Is it possible to create such a function??

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    In Access, you do not normally store calculation in tables. Tables are for storing data. Calculations are usually performed in Reports or Queries. I suggest you create a query using the Query Designer. There are functions that can be used in your query. There are tools in the query designer that can help you with adding functions to Totals queries. At the top of the Designer, in the Ribbon, there is a Totals tool. Look for the Sigma icon and the word, Totals.

    Now, with a table added to the design surface, you can add fields to the Design Grid by double clicking fields within the table.

    Towards the bottom of the Query Designer window, you can use the Total: row to select an option from the Total field. For instance, you may want to change the selection from Group By to Sum or to Max.

    After you look into this, you may discover that you need something more complex than what these tools offer. Remember that you can save one query object and place the query you just saved inside another query object, as a subquery.

  3. #3
    Join Date
    Jul 2015
    Posts
    11
    Quote Originally Posted by ItsMe View Post
    In Access, you do not normally store calculation in tables. Tables are for storing data. Calculations are usually performed in Reports or Queries. I suggest you create a query using the Query Designer. There are functions that can be used in your query. There are tools in the query designer that can help you with adding functions to Totals queries. At the top of the Designer, in the Ribbon, there is a Totals tool. Look for the Sigma icon and the word, Totals.

    Now, with a table added to the design surface, you can add fields to the Design Grid by double clicking fields within the table.

    Towards the bottom of the Query Designer window, you can use the Total: row to select an option from the Total field. For instance, you may want to change the selection from Group By to Sum or to Max.

    After you look into this, you may discover that you need something more complex than what these tools offer. Remember that you can save one query object and place the query you just saved inside another query object, as a subquery.
    ItsMe thanks for answering..Ok so let's say that I want to make a query in which I'm going to insert some calculated field. My question is: Is it possible to create a function the kind of one you create in excel using ctrl+shift+enter as I show in the video?? The function uses the whole field as the argument.

    Thanks!!

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Is it possible to create a function the kind of one you create in excel using ctrl+shift+enter as I show in the video??
    Yes, however, it may not be as straight forward as you would like it to be. You will have to familiarize yourself with tables and queries in Microsoft Access. It may be as easy as using the Max() function. You will have to play around with your data and see if that is what you are looking for. Spreadsheets are not like tables.

    I suggest you follow the suggestion in post #2 and look into the Max() function.
    Towards the bottom of the Query Designer window, you can use the Total: row to select an option from the Total field. For instance, you may want to change the selection from Group By to Sum or to Max.

  5. #5
    Join Date
    Jul 2015
    Posts
    11
    Thanks ItsMe, I guess I'm going o spend several weeks playing around with my data.

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

Similar Threads

  1. Array functions in Access Fields (Tricky one)
    By SebastianColombia in forum Access
    Replies: 2
    Last Post: 09-22-2015, 10:42 AM
  2. Replies: 5
    Last Post: 08-14-2014, 02:30 AM
  3. Replies: 12
    Last Post: 10-01-2013, 12:59 PM
  4. Insert new calculated field
    By endri81 in forum Queries
    Replies: 1
    Last Post: 01-19-2013, 03:44 PM
  5. Query Date Range Based on Calculated Fields
    By wilsoa in forum Queries
    Replies: 6
    Last Post: 03-08-2012, 02:41 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