I have a form, TimeCard that has a subform, TimeCardSub that is set to data sheet view. Is there a way to double click on a row in TimeCardSub and have that record populate TimeCard for editing?
I've tried a double click event on one of the fields (ComboBox, Job) using the following code.
Code:
Private Sub cboJob_DblClick(Cancel As Integer) DoCmd.OpenForm "TimeCard", , , "[JobID] = " & Me!JobID
Me.FilterOn = False
End Sub
This does bring up the correct job but not always the right record.
I'm looking to in some way modify this code or something different/better so I can just double click anywhere on the specific (Row) record in TimeCardSub and bring it up in TimeCard. Please let me know if you have a solution to my problem or a better way to achieve this.
As a bonus I'm also looking for a way to filter or code TimeCardSub to show the most recent entry on the top rather than the bottom as a double check for the person entering the data. This way they'll be able to quickly look back at their entries. Thoughts?
Thanks for looking.