Results 1 to 9 of 9
  1. #1
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231

    How does one refresh a form tothe most current updated data?


    I have some entries that are used by themselves and in combination with each other. After I enter the data and run an update to combine strings I would like to see the update without closing and opening the form. Is there a way?

  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,770
    What do you mean by 'combine strings'? Why is data combined?

    Code can run Requery or Refresh method.
    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
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    As a for instance, I have a school year that is displayed as 2013 - 2014. But I am using these years for predictions for next and other school years like 2014 - 2015.
    But to do this I have to add 1 to each current year. I need the years separate for the calculation, but have to display them as 2013 - 2014, so I combine the individual years to form the combined school year.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The school year value could be calculated whenever needed.

    However, is the issued resolved with suggestion?
    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.

  5. #5
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    If I store the School Year as 2013 - 2014, how would I do a calculation on that value?

    Also, I don't really understand what you meant with "Code can run Requery or Refresh method."

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I said the "2013 - 2014" string can be calculated when needed, doesn't have to be saved to table.

    Code in some event (button Click, form AfterUpdate, etc):

    Me.Requery

    or

    Me.Refresh
    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.

  7. #7
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    OK, I'll try that.

    But to my original question; is there a way to refresh the form (a PF key like F9 does in Excel)?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Click RefreshAll on the ribbon or run suggested code.
    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.

  9. #9
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    Perfect. Problem solved.

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

Similar Threads

  1. Need to refresh form to display updated data
    By pledbetter in forum Forms
    Replies: 3
    Last Post: 01-02-2014, 01:20 PM
  2. Replies: 1
    Last Post: 10-12-2013, 05:39 PM
  3. Replies: 1
    Last Post: 09-17-2013, 11:30 AM
  4. Refresh data on menu form
    By bibbyd01 in forum Forms
    Replies: 3
    Last Post: 04-19-2012, 08:48 AM
  5. Replies: 8
    Last Post: 01-20-2012, 05: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