So, I think it's on the right track. I did learn though, I only need a listbox (lstJob1, lstJob2, etc) for each day of the week (Monday-fri) to query date field (I have a txtDate that this code feeds the date too) to populate and none of the other boxes.
I set the weekdate to think it's Tuesday (for testing) and it seems like it goes back two days instead of one? I ran it today and the date it retrieved was the 25th, not the 26th? Am i overlooking something?
Code:
Dim LDate As DateDim LValue As String
WkDayNum = "3" 'Weekday(Date)
Dim strLoad As String
For X = WkDayNum - 1 To 2 Step -1
LDate = DateAdd("d", X * -1, Date)
LValue = WeekdayName(X, True, vbMonday)
MsgBox (LDate)
Select Case X
Case 2
txtDate.Value = LDate
lstJob1.Requery
Case 3
Case 4
Case 5
MsgBox (LValue)
lstJob1.RowSource = (DLookup("[jCode]", "tblEmp", "jDate = " & "'" & LDate & "'"))
txtDate.Value = LDate
Case 6
End Select
Next X