Results 1 to 5 of 5
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528

    Field in the main form based on a subform

    Hello my friends
    I have a main form and a subform
    In the main form field collects the values ​​in a field in the subform
    Does not show results
    Put this shows me an error


    = ([Forms]! [FrmTable1Subform]! [Expr1] - [mom])
    or
    =Sum([Forms]![frmTable1Subform]![momout])

    an error

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Recommend you give the subform container control a name different from the object it holds, like ctrDetails.

    If textbox is in subform footer section, reference in textbox on main form:

    =[ctrDetails].Form.[controlname]
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Hello again
    Repeated error
    = Nz ([Forms]! [FrmTable1Subform]! [Total]; 0)
    Click image for larger version. 

Name:	rrr.PNG 
Views:	10 
Size:	8.7 KB 
ID:	15683

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Doesn't look like what I suggested.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you very much June
    I've been to solve the problem
    The error was in the name of the subform

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

Similar Threads

  1. Replies: 3
    Last Post: 01-18-2012, 03:05 AM
  2. Replies: 4
    Last Post: 10-18-2011, 10:18 AM
  3. Replies: 2
    Last Post: 08-11-2011, 10:02 AM
  4. Subform Combobox based on Main form combo box
    By accessmom in forum Forms
    Replies: 5
    Last Post: 02-21-2011, 07:02 AM
  5. Replies: 1
    Last Post: 11-16-2010, 08:42 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