M
Martin
I have a form containing a label and an unbound control. I want to put the
form in a loop that will allow the label box to change values and allow the
user to enter a response in the control. I have the following code created:
DoCmd.OpenForm "Data Entry 2", , acNormal
For N = 0 To UBound(DeptArray)
Forms![Data Entry 2].[LabelText].Caption = DeptArray(N, 1)
Forms![Data Entry 2].Refresh
Forms![Data Entry 2].[RespAnswer].SetFocus
Next N
This code works except for the fact that the process does not stop to allow
the user to provide a response for each pass thru the loop. Only the last
pass thru the loop is displayed to the user.
Can someone tell me what I am missing?
Thanks.
form in a loop that will allow the label box to change values and allow the
user to enter a response in the control. I have the following code created:
DoCmd.OpenForm "Data Entry 2", , acNormal
For N = 0 To UBound(DeptArray)
Forms![Data Entry 2].[LabelText].Caption = DeptArray(N, 1)
Forms![Data Entry 2].Refresh
Forms![Data Entry 2].[RespAnswer].SetFocus
Next N
This code works except for the fact that the process does not stop to allow
the user to provide a response for each pass thru the loop. Only the last
pass thru the loop is displayed to the user.
Can someone tell me what I am missing?
Thanks.