Results 1 to 7 of 7
  1. #1
    Douglasrac is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    92

    Question How To Make Automatic Calculations Without Entering In The Form?

    Hi,

    I have a form with 3 fields:

    - Value to Receive
    - Paid Value
    - Remaining Amount

    When inputting data, I will input Value to Receive, nothing on Paid and Remaining Amount should be a calculation (Value to Receive minus Paid Value).

    My question is how can Access automatically calculate the Remaining Amount, if I will input Paid Value in a Query not in the form.
    I don't want to come back to the form and search for the registry. I want to modify in the query and when I close the query and open again, Remaining Value should be different, considering the last Paid Value I input.

    Is that possible?

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    Remaining Value should not be a Field in the Table, It sould be a Calculated Value.

    It will always be correct this way.

  3. #3
    Douglasrac is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    92
    Thanks. That worked very well.

    My last question is if I can make this calculated field appear in the query also with money format. Instead of just the number, it should be $. I can do that will the other, because they are real field, but this one only appear in the query.

  4. #4
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    The correct way of doing this is by Forms, where you can format it the way you want.

    Why do you need to do this in a Query. Usually users do not have access to Tables or Queries.

  5. #5
    Douglasrac is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    92
    Quote Originally Posted by Rainlover View Post
    The correct way of doing this is by Forms, where you can format it the way you want.

    Why do you need to do this in a Query. Usually users do not have access to Tables or Queries.

    Do you want the short or the long version?

    Ok I give you both:

    Short: Its much easier to insert it on the query, since only the records I need will be listed, all together.


    Long:

    Tables/Forms

    - Clients
    - Insurance details
    - Payment Details
    - Commission Details

    All forms are in a chain. So I always open form Clients that will have an ClientID. Then I press a button inside the form that will open Insurance Details, that will be opened based on the ClientID, bring only the Insurance Details of that Client. Same for Payment Details and Commission Details. Payments are connected to Insurance not Client, since a Client can have more than one Insurance. And Commission connected to Payment, since 1 insurance can have more than 1 payments and so more than 1 commission. So there is no other way (at least not that I know off) to reach Commission Details, but opening the forms one by one, in a chain.

    So, what I want is just a list of all commissions that are not paid. I will open this list and input the amount paid.
    If I input on forms, as you suggested, I will open Clients form, search for the client name, in Insurance details search for the insurance, in Payment search for the right payment and hit commission and input the value, and then close everything and start again. Doesn't make much sense, does it?

    So I just filter in a query all the records that commission is not paid and there I input the values. When I reload the query those records won't be there anymore, only the non-paid ones.

  6. #6
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    So I just filter in a query all the records that commission is not paid and there I input the values. When I reload the query those records won't be there anymore, only the non-paid ones.

    If you can do this you can also use that Query as the Record Source of a Form.

    You may prefer Datasheet View which looks like a Query but it is really a Form.

  7. #7
    Douglasrac is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    92
    Ok thank you! I will work on that.

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

Similar Threads

  1. Percent in a table; entering it via a form
    By DecaturLady in forum Access
    Replies: 11
    Last Post: 08-04-2011, 07:16 AM
  2. Entering Text in Combo Form
    By Bobt in forum Forms
    Replies: 2
    Last Post: 10-22-2010, 03:53 AM
  3. Question about entering data through form
    By vixtran in forum Database Design
    Replies: 6
    Last Post: 06-16-2009, 07:23 AM
  4. Replies: 2
    Last Post: 03-16-2009, 12:19 PM
  5. Entering query results in a form
    By marcello.dolcini in forum Forms
    Replies: 0
    Last Post: 04-15-2007, 06:01 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