• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 49
  • Last Modified:

Refreshing A subform

Hi

Kindly advise whether the code below can refresh the sub form properly:

Private Sub Refresh_Click()
DoCmd.Save
DoCmd.Close
Docmd.Opern Form " Accounts"
End Sub

I have tried the Me.Requery nothing seams working up

Regards

Chris
0
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Asked:
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
  • 3
  • 2
1 Solution
 
Pawan KumarDatabase ExpertCommented:
You can try like ..

Me.yourSubFormConyrol.Form.Requery
0
 
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScDirectorAuthor Commented:
On after update event??????????
0
 
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScDirectorAuthor Commented:
Or do you mean like this

Private Sub Refresh_Click()
DoCmd.Save
Me.yourSubFormConyrol.Form.Requery
End Sub
0
 
Pawan KumarDatabase ExpertCommented:
Yes.
0
 
Pawan KumarDatabase ExpertCommented:
Hi,
You need to select my comment and then click on the submit. That's the way we close the questions.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now