S
ServiceEnvoy
I'm trying to set up a double click function so I can double click on
a sub form and open a main form called "FRM_Tickets-All" and open it
to the record that has the matching "internalticketnum" field. When I
double click it I get the dreaded "Run-time error 2501. Here is the
code I have now:
Private Sub Ticket_DblClick(Cancel As Integer)
DoCmd.OpenForm "Frm_Tickets-All", , , "[internalticketnum] = '" &
Me.InternalTicketNum.Value & "'"
End Sub
What am I doing wrong?
a sub form and open a main form called "FRM_Tickets-All" and open it
to the record that has the matching "internalticketnum" field. When I
double click it I get the dreaded "Run-time error 2501. Here is the
code I have now:
Private Sub Ticket_DblClick(Cancel As Integer)
DoCmd.OpenForm "Frm_Tickets-All", , , "[internalticketnum] = '" &
Me.InternalTicketNum.Value & "'"
End Sub
What am I doing wrong?