How do I refresh database window in Access without using refreshd.

G

Guest

Hi,

I need to refresh database window thru vba but I am getting this error
message:
Method ‘Execute’ of object ‘_commandBarButton’ failed
-->cBarCtl.Execute

Here is my code:
DoCmd.SelectObject acTable, , True
Set cBars = Application.CommandBars
Set cBarCtl = cBars.FindControl(msoControlButton, 3812)
If Not cBarCtl Is Nothing Then
cBarCtl.Execute
End If

I also tried using refreshddatabasewindow method it does not work in ACC2K.

Thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top