Results 1 to 3 of 3
  1. #1
    doobybug is offline Advanced Beginner
    Windows 98/ME Access 2003
    Join Date
    Jan 2009
    Posts
    39

    Calculated Field in continuous form

    Hi,

    I have a form having this format:

    A, B, C, D, E, F, G

    I need to produce a Total that adds A, B, C, D, E, F, G for each record

    I tried to create a query and then look up the value using this:



    =DLookUp("[Total]","[qryTotUniv]","[BranchId]=" & [Forms]![RegBranch1]![BranchId])

    However nothing is appearing

    Is there another way? Or am I doing anything wrong?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do the calculation in the RecordSource query of the form.

  3. #3
    Jim D is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    1

    Calculated Field within a Form

    I discovered a simple solution without the programming hassel to create a formula within a FORM. I needed a quick fix to this problem and everything I looked up said you cannot do this except in a query. It's not the most elaborate way, but gets the job done.

    Go into design view from "Form" and select the field you wish to show the value. In that field's cell, type in the formula (almost like Excel). The trick here is that each field must be encased by brackets within the formula and the field names must be typed exactly like they appear in the Table.

    Example: Field_1= Quantity Field_2 = Price Field_3 = Total Cost

    Quantity x Price = Total Cost

    =[Quantity]*[Price]

    You will have to go into design from "Table" and be sure your fields being calculated are configured to their proper definitions.

    Quantity - Number
    Price - Currency
    Total Cost - Currency

    Hope this helps?

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

Similar Threads

  1. Continuous Form
    By duckie10 in forum Access
    Replies: 13
    Last Post: 06-09-2009, 11:15 AM
  2. Replies: 2
    Last Post: 05-22-2009, 01:07 PM
  3. Replies: 1
    Last Post: 02-05-2009, 04:53 PM
  4. Setting criteria in a calculated date field
    By SteveReberger in forum Access
    Replies: 0
    Last Post: 10-29-2008, 06:58 AM
  5. Update table from calculated field in a form
    By BernardKane in forum Forms
    Replies: 3
    Last Post: 11-28-2006, 09:48 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