Skip patterns

T

Tracy

Hi,

How do you write code to skip past a few fields if someone selects a certain
response to a field (combo box). For example, if [Mechanism] <> 1 then I want
the form to skip to the field, [Intent]. I am guessing the code will include
the SetFocus statement? Yet I am not sure how to write it. Thanks.
 
K

Klatuu

Use the After Update event of the combo box.

Private Sub Mechanism_AfterUpdate()
If Me.Mechanism <> 1 Then
Me.Intent.SetFocus
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top