I have a form where we enter our employees start, stop times, and then utilizing some VB code and some macro's their total hours is calculated and stored. Off to the side, I have 5 list boxs' that return 1) The hours worked on that shift, 2) The hours worked for that entire day, 3) The hours worked that entire week, 4) The hours worked over 40, and 5) The hours that were billed as overtime.
I coded a VB check to make sure that if 4 and 5 don't match up, a msg box is displayed to alert the user as to the type of error they made when entering that individuals time so they can go back and fix it.
My problem is that Access is not seeing any value in the list box, and therefor the check isn't working. Anyone have any ideas on what I can do to get this to work?
I coded a VB check to make sure that if 4 and 5 don't match up, a msg box is displayed to alert the user as to the type of error they made when entering that individuals time so they can go back and fix it.
Code:
If (Forms!PayrollDataEntry!eeadd.Form!List188 > Forms!PayrollDataEntry!eeadd.Form!List190) Then
MsgBox ("You Have Not Billed This Employee's Overtime as Overtime.")
End If
If (Forms!PayrollDataEntry!eeadd.Form!List190 > Forms!PayrollDataEntry!eeadd.Form!List188) Then
MsgBox ("You Have Billed More Overtime than the Employee Worked.")
End If
My problem is that Access is not seeing any value in the list box, and therefor the check isn't working. Anyone have any ideas on what I can do to get this to work?