M
Matt via AccessMonster.com
I have the following code on the dbl click event. It works great in another
database I created. However it returns a blank form when I use it in a new
database.
It should return the record with the matching DetailsID in frmEngLog. I only
have 5 records in my test database and there are all unique. When I execute
the code it opens the form but it's blank. HELP!
Private Sub DetailsID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim strFilter As String
stDocName = "frmEngLog"
strFilter = "[DetailsID] = Forms!frmEngLog!DetailsID"
DoCmd.OpenForm stDocName, acNormal, , strFilter
End Sub
database I created. However it returns a blank form when I use it in a new
database.
It should return the record with the matching DetailsID in frmEngLog. I only
have 5 records in my test database and there are all unique. When I execute
the code it opens the form but it's blank. HELP!
Private Sub DetailsID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim strFilter As String
stDocName = "frmEngLog"
strFilter = "[DetailsID] = Forms!frmEngLog!DetailsID"
DoCmd.OpenForm stDocName, acNormal, , strFilter
End Sub