Hi all,
Here's my code...
This code is meant to populate a row of 7 text boxes (txtProj1Day1 - 7) using the date text box directly above it (txtDay1 - 7) as criteria.
Strange thing is, this worked for a while, but now, I'm getting an "invalid use of null" error message from the DLookup function.
Any ideas?
Here's my code...
Code:
Do
date_box_str = "txtDay" & counter_day
Set date_box = Forms("frmTimesheetManager").Controls(date_box_str)
hour_box_str = "txtProj" & counter_proj & "Day" & counter_day
Set hour_box = Forms("frmTimesheetManager").Controls(hour_box_str)
hour_box.Value = DLookup("[Hours Worked]", "tmp_tblHours", "[when] = #" & date_box & "#")
Loop Until counter_day = 7
Strange thing is, this worked for a while, but now, I'm getting an "invalid use of null" error message from the DLookup function.
Any ideas?
Last edited: