Results 1 to 3 of 3
  1. #1
    gpsmith is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    4

    SubForm not updating after crash


    I started in on a payroll database for practice, and was working to integrate a subform. My Access is not letting me use wizards, and so I was manually assembling everything. For one glorious hour, the form worked exactly as desired, and then Access crashed. I've rebuilt the system as near as I can recall, but the SubForm isn't quite linking the way it should.

    In practice, the user would:
    • Select a student (and the form automatically updates the ID)
    • Select a supervisor associated with that student
    • Select an account associated with the supervisor


    These three pieces of information would uniquely define the contract we're talking about, and the subform should update with the remaining parts pulled from the contract table. All the selection portions work, but the subform isn't updating with anything beyond a Name error. Can someone help me get straightened out?

    Thanks!
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Is this the frmLookupContract and frmContractSubForm subform arrangement?

    Why is the subform not bound? Can't set Master/Child Links for unbound forms.

    Why bind the main form and not display data from its records on itself?

    I've never seen anyone attempt a form/subform design like this. Using expressions in UNBOUND subform to display data from the main form record. Very odd. And the expressions are wrong in that they reference the table name, not form name. Actually, =[Parent].[Account] works.

    This could be a single form in Continuous view with the search controls in form header. Review http://www.allenbrowne.com/ser-62.html
    Last edited by June7; 07-04-2015 at 10:26 AM.
    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
    gpsmith is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    4
    The organization was the way my mind unwrapped the problem of "part of the form I'm using for searching for a unique records" and "part of the form updating a unique record". Missed the binding in the manual insert, so that wasn't intentional (and glad you pointed it out).

    Always happy to consider easier approaches, so Ill look into the link you provided, thanks!

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

Similar Threads

  1. Subform not updating table
    By davibus in forum Forms
    Replies: 7
    Last Post: 08-05-2014, 04:27 PM
  2. Updating Subform Value in a Table
    By ssashraf in forum Forms
    Replies: 2
    Last Post: 12-16-2012, 12:29 AM
  3. Replies: 1
    Last Post: 11-07-2012, 05:31 PM
  4. updating subform
    By cgrinage in forum Access
    Replies: 1
    Last Post: 08-21-2012, 05:38 PM
  5. Subform in Switchboard not updating
    By TrudyD1474 in forum Forms
    Replies: 2
    Last Post: 06-29-2010, 07:50 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