A
Ayo
I have a form with a subform embedded on it. I created a button that I use to
create a filter on my database. The result of the filter is displayed in the
subform. Now, what I want to be able to do is click on a row in the subform
and I want the complete record of the row I clicked on to be displayed on the
main form. I tried using thess two functions:
Function OpenRecordForEditing()
If Not IsNull([Invoice Number]) Then
DoCmd.OpenForm "Invoice Tracker", OpenArgs:=1, datamode:=acFormEdit, _
wherecondition:="[Invoice Number]= " & [Invoice Number] & ""
End If
End Function
Function OpenRecordForEditing()
DoCmd.FindRecord "Invoice Number", acEntire
End Function
Neither of them worked. Any ideas? Thanks.
create a filter on my database. The result of the filter is displayed in the
subform. Now, what I want to be able to do is click on a row in the subform
and I want the complete record of the row I clicked on to be displayed on the
main form. I tried using thess two functions:
Function OpenRecordForEditing()
If Not IsNull([Invoice Number]) Then
DoCmd.OpenForm "Invoice Tracker", OpenArgs:=1, datamode:=acFormEdit, _
wherecondition:="[Invoice Number]= " & [Invoice Number] & ""
End If
End Function
Function OpenRecordForEditing()
DoCmd.FindRecord "Invoice Number", acEntire
End Function
Neither of them worked. Any ideas? Thanks.