A
Antonio
Hello, everybody,
I am running Access 2000. I have a form in which I have a
subform which displays all the open trouble tickets. It
displays the TicketID, CompanyName, and DateCreated. When
I double-click on the company name, in the subform, I
would like to open the trouble ticket form and display the
record of the company I double-clicked on. It opens the
frmTroubleTicket form, but it displays the first open
trouble ticket, not the record of the company I double-
clicked on. Any suggestions?
The code I am using is:
Private Sub CompanyName_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmTroubleTicket", _
WhereCondition:="CompanyName = """ & Me.CompanyName
& """"
DoCmd.Close acForm, "OpenTTs"
End Sub
..
I am running Access 2000. I have a form in which I have a
subform which displays all the open trouble tickets. It
displays the TicketID, CompanyName, and DateCreated. When
I double-click on the company name, in the subform, I
would like to open the trouble ticket form and display the
record of the company I double-clicked on. It opens the
frmTroubleTicket form, but it displays the first open
trouble ticket, not the record of the company I double-
clicked on. Any suggestions?
The code I am using is:
Private Sub CompanyName_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmTroubleTicket", _
WhereCondition:="CompanyName = """ & Me.CompanyName
& """"
DoCmd.Close acForm, "OpenTTs"
End Sub
..