-1

I am using dlookup (date = date) its fine when the date is of "May" but when I put date of any other month like 1/6/19 the dlookup remains silent.

in Dlookup if date is of MAY its fine but not working when date id of JUN the code I am using is as below Me

Total = DLookup("Total", "Dailycash", "Cdate =#" & sdate & "#")

Olympiloutre
  • 2,268
  • 3
  • 28
  • 38

1 Answers1

0

Apply a proper format to the date value expression:

Total = DLookup("Total", "Dailycash", "Cdate = #" & Format(sdate, "yyyy\/mm\/dd") & "#")
Gustav
  • 53,498
  • 7
  • 29
  • 55