The command or action 'Refresh' isn't available now, (1 Viewer)

Steve C

Registered User.
Local time
Yesterday, 23:50
Joined
Jun 4, 2012
Messages
120
Form1 has a Refresh Command Button.

It's been working fine but doesn't now - I get a MsgBox

"The command or action 'Refresh' isn't available now."

- any ideas?

I tried deleting the Command Button and making a new one - didn't work. the new VBA (written by the Wizard (so I don't properly understand it)) is;

Private Sub RefreshCmd1_Click()
On Error GoTo Err_RefreshCmd1_Click

DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Exit_RefreshCmd1_Click:
Exit Sub
Err_RefreshCmd1_Click:
MsgBox Err.Description
Resume Exit_RefreshCmd1_Click

End Sub
 
Last edited:

JHB

Have been here a while
Local time
Today, 08:50
Joined
Jun 17, 2012
Messages
7,732
Try this code, maybe it helps:

Code:
[SIZE=2]Private Sub RefreshCmd1_Click()[/SIZE]
  Me.Refresh
[SIZE=2]End Sub
[/SIZE]
 

Steve C

Registered User.
Local time
Yesterday, 23:50
Joined
Jun 4, 2012
Messages
120
Thank you JHB. sorry I didn't say thank you straightaway. I've not been on the internet due to a berevement.
 

Users who are viewing this thread

Top Bottom