Results 1 to 4 of 4
  1. #1
    DarkWolff is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    29

    Subforms constantly refresh

    I am having trouble with subforms constantly refreshing. I am building a form with a timesheet (first subform) and a sortable project list (second subform); each of the subforms is a continuous by default. However when both of these forms are on the form they start constantly refreshing. I commented out all the code on both subforms and the main form but it still does this. There are no macros either.



    Does anyone know how I could fix this? As I said this doesn't seem to happen when only one of the subforms exists on the form, but I really need both to make this at all user friendly.

    Edit: Forgot to specify this is in Access 2007.
    Last edited by DarkWolff; 02-28-2012 at 03:01 PM.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Are the two subforms based on Tables that have a relationship with each other?
    I worked with a sub form that was Continuous on one of my projects - but the Main form on which the Continuous sub form was placed only displayed one record at a time. The [Continuous] Sub Form displayed multiple records for the related It worked perfectly.
    I wonder if Access doesn't know which record of the first subform to display records from the second sub form for.
    I don't know if you can have two related subforms co-existing . . .
    ??

  3. #3
    DarkWolff is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    29
    Quote Originally Posted by Robeen View Post
    Are the two subforms based on Tables that have a relationship with each other?
    The subforms are sourced by queries that share a common table (the project list). The timesheet query also pulls in the timesheet table, and the project list is actually displaying the projects allocated to that staff member. Both displays need to display the name of the project along with it's ID and that only exists in the full project list.

    Quote Originally Posted by Robeen View Post
    I worked with a sub form that was Continuous on one of my projects - but the Main form on which the Continuous sub form was placed only displayed one record at a time. The [Continuous] Sub Form displayed multiple records for the related It worked perfectly.
    That's basically how a previous implementation of this form works. However staff keep on charging their time to the wrong projects so I'm trying to build-in what projects they are allocated for.

    Quote Originally Posted by Robeen View Post
    I wonder if Access doesn't know which record of the first subform to display records from the second sub form for.
    I don't know if you can have two related subforms co-existing . . .
    ??
    The setup I have does work except that it keeps refreshing. I'm actually rebuilding a database from the ground up because the person who coded the previous one did a lot of things inefficiently and the database is incredibly slow (and it's also not very user friendly). I've been trying to streamline things and think more about the user so I'm slowly and surely replacing everything piece-by-piece. However this is the most visible & requested feature as it is the one every user sees.

    Thanks for your response.

  4. #4
    DarkWolff is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    29
    Ok while doing some more testing I'm noticing that the issue still happens even after deleting either of the subforms. However the issue does not happen when the open the subform directly.

    Edit: I found the issue! Both subforms had a master/child link to a field on the main form that was being sourced from a formula (it pulled an ID based on the staff member's name). However it was constantly updating, so the subforms were refreshing in response. I changed my code to populate that textbox when I needed it to as opposed to all the time and the refresh issue ceased.

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

Similar Threads

  1. Refresh All
    By gg80 in forum Programming
    Replies: 3
    Last Post: 01-12-2012, 03:39 PM
  2. The Refresh Button....?
    By djclntn in forum Forms
    Replies: 10
    Last Post: 01-03-2012, 05:32 PM
  3. Refresh Button
    By JayX in forum Access
    Replies: 1
    Last Post: 12-16-2011, 10:16 AM
  4. Access 2010 Refresh VS Refresh ALL
    By Snwboarder1982 in forum Access
    Replies: 1
    Last Post: 09-09-2011, 04:07 PM
  5. Refresh a list box
    By Orabidoo in forum Forms
    Replies: 9
    Last Post: 04-17-2009, 04:07 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