On a form, I have a form field name txtWaitSeats with a Control Source of WaitSeats.
I have a doubleclick event on this form field.
When on the form, I doubleclick on the field. Nothing seemed to occur.
But when I minimized the form, the little query had run and was sitting BEHIND the form.
What am I doing wrong to make the query behind the form?
Here is the event in the form field txtWaitSeats :
Private Sub txtWaitSeats_DblClick(Cancel As Integer)
On Error GoTo Err_txtWaitSeats_DblClick
Dim stDocName As String
stDocName = "QryWaitSeatsTripID"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_txtWaitSeats_DblClick:
Exit Sub
Err_txtWaitSeats_DblClick:
MsgBox Err.Description
Resume Exit_txtWaitSeats_DblClick
End Sub
Thanks you for your help.
I have a doubleclick event on this form field.
When on the form, I doubleclick on the field. Nothing seemed to occur.
But when I minimized the form, the little query had run and was sitting BEHIND the form.
What am I doing wrong to make the query behind the form?
Here is the event in the form field txtWaitSeats :
Private Sub txtWaitSeats_DblClick(Cancel As Integer)
On Error GoTo Err_txtWaitSeats_DblClick
Dim stDocName As String
stDocName = "QryWaitSeatsTripID"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_txtWaitSeats_DblClick:
Exit Sub
Err_txtWaitSeats_DblClick:
MsgBox Err.Description
Resume Exit_txtWaitSeats_DblClick
End Sub
Thanks you for your help.