how to include skip patterns in forms?

N

NJarrett

I'm working with Access 2003 and would like to create a form for data input
based on a pre-existing survey. This survey contains skip patterns -- ie,
if the answer to question 1 is Yes, skip question 2 and go to 3. I'd prefer
to program these skip patterns into the form in order to minimize error on
the part of the data entry clerk. Any tips, code, or instructive websites?

Thanks.
 
F

fredg

I'm working with Access 2003 and would like to create a form for data input
based on a pre-existing survey. This survey contains skip patterns -- ie,
if the answer to question 1 is Yes, skip question 2 and go to 3. I'd prefer
to program these skip patterns into the form in order to minimize error on
the part of the data entry clerk. Any tips, code, or instructive websites?

Thanks.

You might try coding each control's AfterUpdate event:

If Me![Control1]="Yes" Then
[Control3].SetFocus
Elseif Me.[Control1] = "N/A" Then
[Control4].SetFocus
Else
[Control2].setFocus
End if

If there were a considerable amount of choices on any one control use
a Select Case statement instead of If..then.
 

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