monkeyman77
Registered User.
- Local time
- Today, 03:28
- Joined
- Nov 30, 2016
- Messages
- 47
Hello,
I am having some trouble with a line of code:
If rstBefore![Total] >= 8 Then
OTHours = rst![Total] - rstBefore![Total]
My issue arises when there is no previous recordset for the formula to look at.
How can I add that in?
I was hoping something like this would work but not having any luck:
If rstBefore![Total] IsNull or rstBefore![Total] >=8 Then
OTHours = rst![Total] - rstBefore![Total]
Any help is much appreciated.
-Steven
I am having some trouble with a line of code:
If rstBefore![Total] >= 8 Then
OTHours = rst![Total] - rstBefore![Total]
My issue arises when there is no previous recordset for the formula to look at.
How can I add that in?
I was hoping something like this would work but not having any luck:
If rstBefore![Total] IsNull or rstBefore![Total] >=8 Then
OTHours = rst![Total] - rstBefore![Total]
Any help is much appreciated.
-Steven