H
hawornk via AccessMonster.com
I’m at a total loss! I have two sets of eight controls, one large and one
small, that are paired up. Either the large or small control of each pair
will be visible at any given time.
Here is a sample of the code I use to switch the focus and the visibility:
Private Sub Citations_3_DblClick(Cancel As Integer)
Me.citation4.Visible = True
Me.citation4.SetFocus
Me.Citations_3.Visible = False
End Sub
This code works PERFECTLY for seven out of the eight pairs, however, for one
particular pair, I continually get “Runtime error ‘2110’ cannot Move the
focus to the control citation6.â€
Here is the code for the problem control:
Private Sub citations_5_DblClick(Cancel As Integer)
Me.citation6.Visible = True
Me.citation6.SetFocus
Me.citations_5.Visible = False
End Sub
Why would the exact same code only work seven times out of eight??? I double-
checked the properties for the boxes and they’re all the same, too!
small, that are paired up. Either the large or small control of each pair
will be visible at any given time.
Here is a sample of the code I use to switch the focus and the visibility:
Private Sub Citations_3_DblClick(Cancel As Integer)
Me.citation4.Visible = True
Me.citation4.SetFocus
Me.Citations_3.Visible = False
End Sub
This code works PERFECTLY for seven out of the eight pairs, however, for one
particular pair, I continually get “Runtime error ‘2110’ cannot Move the
focus to the control citation6.â€
Here is the code for the problem control:
Private Sub citations_5_DblClick(Cancel As Integer)
Me.citation6.Visible = True
Me.citation6.SetFocus
Me.citations_5.Visible = False
End Sub
Why would the exact same code only work seven times out of eight??? I double-
checked the properties for the boxes and they’re all the same, too!