Results 1 to 5 of 5
  1. #1
    Shag84 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    18

    Refreshing a subform?

    Hi,
    I have a main form (Patient details) with a subform(RelationXF--record source is a juntion table).
    When I choose to enter a new patient, I enter all of the fields. The last field is Zip Code. When I enter the zip and hit tab I am in the first field of my subform.

    I have RelationXID, and PatientID. PatientID is a combobox so the user can select a name.
    The problem is when I tab from PatientT.Zip to the subform, PatientID does not show the new patient name I just entered!!!! How/where do I go about refreshing the underlying PatientT/PatientQ (i've tried both) so the name is visible???


    Do I use Me.Refresh, Forms!PatientT.Refresh, and where do I put it? I tried the OnLostFocus event for the PatientT, Ziptxt, and anywhere I could think of.
    Please, your help would be appreciated.
    Thanks,
    Don

  2. #2
    Access_Blaster is offline User
    Windows XP Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Open your subforms properties in design view, look under the "events" tab select after update. Click the three ... and choose code builder, then type me.requery or try me.refresh.

  3. #3
    Shag84 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    18
    Sadly, this doesn't work. But I appreciate your replying.
    Any other thoughts?

    Thanks,
    Don

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  5. #5
    Shag84 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    18
    I apologize for my delay in responding.
    I appreciate the link, but I found that one the other day and it does not work.

    My problem isn't linking to an existing set of data. I want to enter a new child on program, enter his parents name, then populate the juction table to create the relationships. Without the user have to do redundant work.

    Thanks again. Please let me know if you have any other ideas.
    Don

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

Similar Threads

  1. Refreshing Daily Checklist
    By sved in forum Access
    Replies: 1
    Last Post: 06-24-2011, 04:13 PM
  2. Replies: 4
    Last Post: 05-17-2011, 06:56 AM
  3. Link Tables Not Refreshing
    By goodguy in forum Import/Export Data
    Replies: 14
    Last Post: 01-04-2011, 12:49 PM
  4. Refreshing subform when form refreshed
    By Remster in forum Forms
    Replies: 27
    Last Post: 10-15-2010, 09:39 AM
  5. Refreshing comboboxes in a subform
    By KB_Dev in forum Programming
    Replies: 1
    Last Post: 04-07-2009, 12:12 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