Suppress Error Message 2110

CBRAY

Registered User.
Local time
Yesterday, 23:49
Joined
Jul 22, 2005
Messages
16
Hi
I run a bit of VB on the click of a command on my main form, the last instruction is:

Me![frmLoadOLE].SetFocus
Me![frmLoadOLE].Form![cmdLoadOLE].SetFocus

This is to set the focus on a command button on a sub form.
The commands on focus then runs more VB. It is a bit messy but all the actions I require are carried out. The only single problem is that i recieve a run time error 2110 saying access cant move the focus to the control cmdLoadOLE, but it actually does. Is there anyway I can suppress this error message?

Thanks
 
No worries I used this:

Err_Command0_Click:

Select Case Err.Number
Case 2110
Resume Exit_Command0_Click
MsgBox Err.Description
Resume Exit_Command0_Click
End Select



End Sub
 

Users who are viewing this thread

Back
Top Bottom