Johnny Drama
In need of beer...
- Local time
- Yesterday, 23:26
- Joined
- Dec 12, 2008
- Messages
- 211
Hello all,
I'm using the code below to filter and open a report in access 2007. When the code fires I get the following error message:
Run time error '438': Object doesn't support this property or method. Debug goes the line in bold below. I'm not a VBA coder by an means, so any help would be appreciated. Thanks
Private Sub Owner_Name_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Email Exceptions By Owner"
stLinkCriteria = "[Assigned To]='" & Me![Owner Name].[ID] & "'"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
End Sub
I'm using the code below to filter and open a report in access 2007. When the code fires I get the following error message:
Run time error '438': Object doesn't support this property or method. Debug goes the line in bold below. I'm not a VBA coder by an means, so any help would be appreciated. Thanks
Private Sub Owner_Name_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Email Exceptions By Owner"
stLinkCriteria = "[Assigned To]='" & Me![Owner Name].[ID] & "'"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
End Sub