Hi all, I've got a main form containing a subform in datasheet view. I've got one of the fields set up so that when it is double-clicked, the following code runs:
TaskID is just a autonumber field to ID each individual task record. When the form opens, it always displays the first record in the DB instead of the TaskID of the record I double-clicked on.
Any thoughts on what's up with this? I'd appreciate it.
Code:
Private Sub TaskID_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmAddTask", acNormal, "[TaskID] = " & Me!TaskID
End Sub
TaskID is just a autonumber field to ID each individual task record. When the form opens, it always displays the first record in the DB instead of the TaskID of the record I double-clicked on.
Any thoughts on what's up with this? I'd appreciate it.