R
RipperT
Access 2000. I have a field on a report with the control source set to
=DLookUp("[HearingDate]","qrySegCharges","[SegID] = '" & [SegID] & "'")
The field says "error" when I run the report and I can't figure out why. It
works when I use another field from the query, but not with SegID, which is
a primary key. The other field works but the query returns multiple records
with the same field value and the function returns the first one it finds. I
need it to return the HearingDate in the record that matches SegID, but it
just says error. Help!
=DLookUp("[HearingDate]","qrySegCharges","[SegID] = '" & [SegID] & "'")
The field says "error" when I run the report and I can't figure out why. It
works when I use another field from the query, but not with SegID, which is
a primary key. The other field works but the query returns multiple records
with the same field value and the function returns the first one it finds. I
need it to return the HearingDate in the record that matches SegID, but it
just says error. Help!