G
Guest
I'm trying to use some dlookups on the onFormat event of the detail section
of my report to hide certain parts of the report on a record-by-record basis.
The dlookup always seems to return NULL even when the item exists.
Dim test As Variant
test = DLookup("[evaluation_id]", "tblEvaluation", "[idea_id]=" &
Me!idea_id)
If test <> Null Then
Me.labelEvaluation.Visible = True
Me.lineEvaluation.Visible = True
Me.subreportEvaluation2.Visible = True
End If
evaluation_id and idea_id are fields in tblEvaluation. Me!idea_id is a text
box on the report.
Any help would be gratefully recieved!
Chris
of my report to hide certain parts of the report on a record-by-record basis.
The dlookup always seems to return NULL even when the item exists.
Dim test As Variant
test = DLookup("[evaluation_id]", "tblEvaluation", "[idea_id]=" &
Me!idea_id)
If test <> Null Then
Me.labelEvaluation.Visible = True
Me.lineEvaluation.Visible = True
Me.subreportEvaluation2.Visible = True
End If
evaluation_id and idea_id are fields in tblEvaluation. Me!idea_id is a text
box on the report.
Any help would be gratefully recieved!
Chris