boblarson
Smeghead
- Local time
- Today, 08:39
- Joined
- Jan 12, 2001
- Messages
- 32,040
You are missing the right parentheses from the DSum function and then you also have a strange calculation there with the equal sign and all. I changed to;
Code:
If DSum("[PlannedHours]", "EmployeeWeeklyActivityCommentstbl", "[CommentsDateTimeStamp] Between ([CommentsDateTimeStamp])+7-Weekday([CommentsDateTimeStamp],2) - 7 And ([CommentsDateTimeStamp])+7-Weekday([CommentsDateTimeStamp],2)[COLOR=red])[/COLOR] [COLOR=red][B]+ Me.PlannedHours[/B][/COLOR] > 34.15 Then
Last edited: