R
redFred
I am at a loss. I have a button on a subform (continuous) to select a record
to display on another subform, which has some onCurrent events. This works
just fine but does take a few seconds and I wish to display a please wait
label on the parent of the subform that houses the button.
The label is visible, I have ensured that. When user selects the button to
display a record, the label should be visible but is not. When I step
through it is made visible correctly, but the net effect for user is that the
label is never visible.
Code:
Forms![frm1 Client]!Reservationfrm.Form!lblPleaseWaitInvoice.Visible = True
With Forms![frm1 Client]![Reservationfrm].Form![Jobfrm].Form
.RecordsetClone.FindFirst "InvNum = " & Me!txtInvNum
If .RecordsetClone.NoMatch Then
MsgBox "Record not found!"
Else
.Bookmark = .RecordsetClone.Bookmark
End If
End With
Forms![frm1 Client]!Reservationfrm.Form!lblPleaseWaitInvoice.Visible = False
Forms![frm1 Client]![Reservationfrm].Form![tabJob].SetFocus
Anything I try works (when in debug) but in real time nothing happens as it
appears the .bookmark= function takes over.
Does anyone have advice?
Thanks.
to display on another subform, which has some onCurrent events. This works
just fine but does take a few seconds and I wish to display a please wait
label on the parent of the subform that houses the button.
The label is visible, I have ensured that. When user selects the button to
display a record, the label should be visible but is not. When I step
through it is made visible correctly, but the net effect for user is that the
label is never visible.
Code:
Forms![frm1 Client]!Reservationfrm.Form!lblPleaseWaitInvoice.Visible = True
With Forms![frm1 Client]![Reservationfrm].Form![Jobfrm].Form
.RecordsetClone.FindFirst "InvNum = " & Me!txtInvNum
If .RecordsetClone.NoMatch Then
MsgBox "Record not found!"
Else
.Bookmark = .RecordsetClone.Bookmark
End If
End With
Forms![frm1 Client]!Reservationfrm.Form!lblPleaseWaitInvoice.Visible = False
Forms![frm1 Client]![Reservationfrm].Form![tabJob].SetFocus
Anything I try works (when in debug) but in real time nothing happens as it
appears the .bookmark= function takes over.
Does anyone have advice?
Thanks.