focus

R

rml

I have a unbound text box and an image on a form. When the text box is
filled out with "aaa" and you click the image, it unlocks some fields.

My problem is that when I'm in the box, then press the image it does not work.
When I move the cursur out of that box to another field and click the image
it works fine. How can I make it move from the box when I click the image?
Maybe some kind of focus.

I hope this makes sense.

Thanks.
 
L

Linq Adams via AccessMonster.com

That'll do it! Just move focus to another field in the form. If the unbound
textbox is the only one that's unlocked when this occurs, place a new textbox
in the bottom left-hand corner of your form, reduce it it size to a dot, then
use this

Private Sub YourImage_Click()
If Me.YourTextBox = "aaa" Then
AnyField.SetFocus
"Unlock your fields here
End If
End Sub
 
Top