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

  • Thread starter Thread starter Guest
  • Start date Start date
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!!
 
Back
Top