How have you declared vAccumChk?\
If it's declared as Variant, you shouldn't have any problem.
If it's declared as String, wrap the DLookup call in the Nz function.
Incidentally, your DLookup doesn't look correct. I suspect you meant
vAccumChk = Nz(DLookup("[car_flag_set]", _
"associate_error_summary", _
"[associate_id] = " & txassociate_id), "")
--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)
"Mark" <(E-Mail Removed)> wrote in message
news:2D207348-A6A9-496F-AB15-(E-Mail Removed)...
> Hi all,
>
> How do I handle this if it is NULL? car_flag_set is Text, it works on
> integers if it is null.
>
> vAccumChk = DLookup("[car_flag_set]", "associate_error_summary",
> "[associate_id] = txassociate_id")
>
> Thanks!