CharlesWhiteman
Registered User.
- Local time
- Today, 17:50
- Joined
- Feb 26, 2007
- Messages
- 421
I'm using the follow piece of code but I'm getting a resume error. I think the code is self explanatory but want to find the correct way to get the code to go to the next routine when it detects 0
Code:
Dim intCriticalCount As Integer
intCriticalCount = DCount("PrimaryDataID", "QryUsePercentageLeftCritical")
If intCriticalCount = 0 Then
Resume
Else
UseLimitCritical
End If
Dim intMediumCount As Integer
intCriticalCount = DCount("PrimaryDataID", "QryUsePercentageLeftMedium")
If intMediumCount = 0 Then
Resume
Else
UseLimitMedium
End If
DoCmd.CloseDatabase