Results 1 to 4 of 4
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528

    button Refresh


    Hello all
    I have a button on form I want is me to work (Me.Refresh)
    But like the closing and opening of the form

  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,632
    Do not understand the issue. What is your code and why doesn't it work - error message, wrong results, nothing happens?

    What do you mean by "like the closing and opening the form"? What exactly do you want to happen when button is clicked?
    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
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    OK
    Thank you very much for your reply
    This is two examples of what I want
    1.
    Private Sub Command39_Click()
    Me.Refresh
    End Sub
    2.
    Private Sub Command39_Click()
    DoCmd.Close
    DoCmd.OpenForm "frmCompanies", acNormal
    End Sub
    The second code is what is now used
    Question
    Is there something similar
    That's where (frmCompanies) is the same as the form that it button

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You don't want Me.Refresh...you want Me.Requery.

    Linq ;0)>

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

Similar Threads

  1. Refresh button in form
    By azhar2006 in forum Forms
    Replies: 5
    Last Post: 03-02-2014, 05:19 PM
  2. Refresh button
    By Kat-ness in forum Forms
    Replies: 2
    Last Post: 05-01-2013, 08:37 PM
  3. The Refresh Button....?
    By djclntn in forum Forms
    Replies: 10
    Last Post: 01-03-2012, 05:32 PM
  4. Refresh Button
    By JayX in forum Access
    Replies: 1
    Last Post: 12-16-2011, 10:16 AM
  5. Replies: 3
    Last Post: 02-14-2011, 02:18 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