G
Guest
Help with subform...
I have a subform that is in DataSheet view. I am using the below code on
the "On Click" fuction in the [product_id] field of my subform and when the
user clicks on the [product_id] field it populates the main form with the
current [product_id} information. What I would like to do is have the user
click on the line indicator on the left side of the row and have it populate
the form, is this possible or is there a way to have it work with all fields
without coding all the field on click.
thanks
Private Sub product_id_Click()
If Me.NewRecord Then
Me.Parent!product_id.SetFocus
RunCommand acCmdRecordsGoToNew
Else
Me.Parent.Recordset.FindFirst _
"product_id=" & Me.product_id
End If
End Sub
I have a subform that is in DataSheet view. I am using the below code on
the "On Click" fuction in the [product_id] field of my subform and when the
user clicks on the [product_id] field it populates the main form with the
current [product_id} information. What I would like to do is have the user
click on the line indicator on the left side of the row and have it populate
the form, is this possible or is there a way to have it work with all fields
without coding all the field on click.
thanks
Private Sub product_id_Click()
If Me.NewRecord Then
Me.Parent!product_id.SetFocus
RunCommand acCmdRecordsGoToNew
Else
Me.Parent.Recordset.FindFirst _
"product_id=" & Me.product_id
End If
End Sub