Results 1 to 2 of 2
  1. #1
    Bamstick is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    1

    Subform with no records


    I have a form with an embedded subform, which, depending on the query result, may or may not have records. I have a field on the main form that points to a calculated field on the subform. When the subform has records, all is well as the calculated field exists and updates the field in the main form. However, when the subform query results in no records, which can occur often, the field in the main form contains "error". This creates errors in the rest of the fields that require this field in calculations. How do I program the field in the main form to result in "0" in the case where there are no records in the subform? Thanks much in advance to this assistance.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I believe this link is the page for which you are looking.

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

Similar Threads

  1. Subform records wont display
    By taylorosso in forum Forms
    Replies: 10
    Last Post: 10-09-2009, 08:59 AM
  2. Replies: 2
    Last Post: 08-20-2009, 07:53 AM
  3. Replies: 0
    Last Post: 06-23-2009, 03:01 PM
  4. Replies: 7
    Last Post: 05-24-2009, 10:24 AM
  5. Replies: 1
    Last Post: 05-27-2006, 12:35 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