Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Update one form based on another

    In access 2007 I want to update my Subform based upon entry in one text field in my main form. Right now the subform won't update unless i close the and reopen it or go to the next record and then come back.

    I have tried entering the following in the After Update event control for the text box
    forms![subformname].requery
    With this I get the error that the object "forms!subformname" cannot be found. I am typing the subform name exactly as it is seen in the objects menu or source object field in the properties of the subform.

    Any ideas how to get the subform to automatically update with the new records after entry in my main form?

    Thanks for the help!
    Last edited by redbaron508; 2012-05-10 at 20:48.

  2. #2
    Administrator
    Join Date
    Jun 2010
    Location
    Portugal
    Posts
    10,250
    Thanks
    130
    Thanked 1,148 Times in 1,057 Posts
    Hi,

    Welcome to the Lounge.

    Try using:

    Me!subformname

    or with the longer syntax

    Forms![YourMainFormName]![subformname]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •