H
Howard Jacobs
Code below attempts to make [txtSelected] (a text box on current form)
visible & then move focus to it.
The final line (<--) gets run time error - "Cannot move focus to ..."
Debug shows that [txtSelected].visible is indeed false even tho first
line (<-.-.) sets it true. Repaint was a failed attempt to remedy
this.
if insert breakpoint at <..... & then continue visible is true & code
works.
Please help.
Private Sub cboAuthors_AfterUpdate()
[txtSelected].Visible = True ' <-.-.
[txtSelectedFirst] = [cboAuthors].Column(0)
[txtSelectedLast] = [cboAuthors].Column(1) ' <.....
[txtSelected] = [txtSelectedFirst] & " " & [txtSelectedLast]
[Label77].Visible = True
Forms!frmBooks.Repaint
Me.Repaint
[txtSelected].SetFocus ' <--
End Sub
visible & then move focus to it.
The final line (<--) gets run time error - "Cannot move focus to ..."
Debug shows that [txtSelected].visible is indeed false even tho first
line (<-.-.) sets it true. Repaint was a failed attempt to remedy
this.
if insert breakpoint at <..... & then continue visible is true & code
works.
Please help.
Private Sub cboAuthors_AfterUpdate()
[txtSelected].Visible = True ' <-.-.
[txtSelectedFirst] = [cboAuthors].Column(0)
[txtSelectedLast] = [cboAuthors].Column(1) ' <.....
[txtSelected] = [txtSelectedFirst] & " " & [txtSelectedLast]
[Label77].Visible = True
Forms!frmBooks.Repaint
Me.Repaint
[txtSelected].SetFocus ' <--
End Sub