Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Location
    Houston
    Posts
    2

    Subform and calculations issues

    I have two issues that I haven't been able to resolve on a project I'm currently working on.

    1) My Contact and Job subforms have malfunctioning combo boxes. They do not pull up the rest of the information on selecting a Contact or Job.



    2) I can't figure out how to set up my Contact and Job subforms to save their IDs to the appropriate fields of the main form's table. I have a feeling this something simple that I'm overlooking while I feel completely brain dead atm.

    3) The "Total" text box (txtTotal I believe) is supposed to show the sum of the "Amount" fields in subfDetails but no matter how I've tried I can't get this to work.

    This is my first project starting from scratch so I'd appreciate any advice as well.

  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
    SubForms are typically used to display the MANY side of a 1:M relationship. Access assists here in that the MANY side usually has a ForeignKey field that is the PrimaryKey of the MainForm RecordSource. Properly set up LinkChild/MasterFields properties will update the ForeignKey field in the SubForm when a new record is added. Your form looks very nice but you need to update the ForeignKey fields in the MainForm RecordSource with ComboBoxes on the MainForm, not the SubForms. You may also wish to rethink using cascading updates in your joins. It is usually not necessary.

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

Similar Threads

  1. Replies: 0
    Last Post: 03-11-2009, 11:40 AM
  2. Time calculations
    By jimandann in forum Programming
    Replies: 2
    Last Post: 02-18-2009, 12:27 AM
  3. Subform Issues
    By dromorkid in forum Forms
    Replies: 0
    Last Post: 11-24-2008, 11:35 AM
  4. Calculations in linked forms
    By Dena Grabinar in forum Forms
    Replies: 0
    Last Post: 08-22-2008, 05:34 AM
  5. Replies: 1
    Last Post: 12-10-2005, 04:52 PM

Tags for this Thread

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