I had a pop-up form that could be generated from double clicking on a field ("ID"
in a subform. The purpose is to display additional pieces of data should the user want to see it.
I am using the following code to do this:
Private Sub txtTcID_DblClick(Cancel As Integer)
DoCmd.OpenForm FormName:="TCdetail", WhereCondition:="tcID='" & Me.txttcID & "'"
End Sub
My problem is that I have developed a need to insert multiple WhereCondition statements as a way to ensure that the user is opening the correct record.
I have tried working with the syntax but am not getting anywhere. Please help me out if you can...I am stuck and need assistance.
Thanks,
Ben
I am using the following code to do this:
Private Sub txtTcID_DblClick(Cancel As Integer)
DoCmd.OpenForm FormName:="TCdetail", WhereCondition:="tcID='" & Me.txttcID & "'"
End Sub
My problem is that I have developed a need to insert multiple WhereCondition statements as a way to ensure that the user is opening the correct record.
I have tried working with the syntax but am not getting anywhere. Please help me out if you can...I am stuck and need assistance.
Thanks,
Ben