A
asrul
Hi All,
my dlookup function with multiple criteria won't work
varT=DLookup("[HourlyTarget]", "DailyTarget_tbl", "[IDLine]=" _
& Forms![DailyTarget_frm]!IDLine_txt AND [WorkDate]=
Forms![DailyTarget_frm]!WorkDate_txt )
varT is variant
HourlyTarget is number
IDLine is Text
WorkDate is Date/Time
It sends me
'Type mismatch'.
error
What's wrong?Please help.
my dlookup function with multiple criteria won't work
varT=DLookup("[HourlyTarget]", "DailyTarget_tbl", "[IDLine]=" _
& Forms![DailyTarget_frm]!IDLine_txt AND [WorkDate]=
Forms![DailyTarget_frm]!WorkDate_txt )
varT is variant
HourlyTarget is number
IDLine is Text
WorkDate is Date/Time
It sends me
'Type mismatch'.
error
What's wrong?Please help.