Results 1 to 4 of 4
  1. #1
    nigelbloomy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    51

    Use a percentage for calculations on a form

    I have one table that hold a percentage. The table is only one record and one field. That percentage is updated throughout the month.



    I have my main table which shows a lot of other numbers. I have a form linked to this main table so users can enter values and change values. On that form, it is very helpful for the users to see a few calculations which use the percentage on the other table. My problem is that my form won't let me use the percentage in any calculations because it it is not linked to the main table. I tried to base the form off a query that did do the calculations, but the resulting query cannot be edited or changed by the user because the two tables are not linked. I don't think the tables can be linked because the main table has a lot of data and the percentage table has just one thing on it. How can I make this form work?

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    Try a Dlookup() function.
    =Dlookup("[PercentField]","TableName")
    use this where you would use the Precent field name.

    If the table only holds 1 field the the WHERE clause is not needed.

    Dale

  3. #3
    nigelbloomy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    51
    It works! That was way too easy. Thank you for restoring my sanity for the day.

  4. #4
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    My pleasure.

    Dale

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

Similar Threads

  1. Percentage function in Form
    By glen in forum Forms
    Replies: 2
    Last Post: 12-15-2012, 03:57 AM
  2. Form calculations in query
    By bkirsch in forum Queries
    Replies: 5
    Last Post: 02-24-2012, 04:45 PM
  3. Performing calculations in the form.
    By mulefeathers in forum Forms
    Replies: 4
    Last Post: 12-07-2011, 10:47 AM
  4. Calculations in a form
    By elmere in forum Forms
    Replies: 3
    Last Post: 04-27-2011, 04:11 PM
  5. How to calculate a percentage on form
    By jrockusa in forum Forms
    Replies: 1
    Last Post: 03-31-2010, 01:53 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