Hi,
I have a form which runs the following code on opening:
If DLookup("RUNS_LEFT", "SD_TRACKER", "[KEY] = 1") = 0 Then
DoCmd.RunMacro "ABC"
Else
DoCmd.RunMacro "RESUME AFTERHOURS"
End If
I need to change this so it runs macro "ABC" whenever the number in the "Runs Left" field ends in 0 or 5. I don't know what to replace "=0" with to get the correct result.
Your help would greatly be appreciated.
Thanks,
LP
I have a form which runs the following code on opening:
If DLookup("RUNS_LEFT", "SD_TRACKER", "[KEY] = 1") = 0 Then
DoCmd.RunMacro "ABC"
Else
DoCmd.RunMacro "RESUME AFTERHOURS"
End If
I need to change this so it runs macro "ABC" whenever the number in the "Runs Left" field ends in 0 or 5. I don't know what to replace "=0" with to get the correct result.
Your help would greatly be appreciated.
Thanks,
LP