klynch0803
Registered User.
- Local time
- Today, 17:38
- Joined
- Jan 25, 2008
- Messages
- 102
I'm stumped for some reason and cant seem to get this to work... Maybe someone can help me out and give me a boost so I can get going again...
I have this and it works perfectly:
But I need to add in this and I have tried adding it in as another If under under the working one and within it and can't get it to process either way I know I'm missing something or more like forgeting something I just cant figure it out...
I have this and it works perfectly:
Code:
Private Sub CheckSun_AfterUpdate()
If CheckSun = True And PayType = Salary Then
rs.SundayPay = PayRate
Me.TotalPayCheck = CDbl(SundayPay) + CDbl(MondayPay) + CDbl(TuesdayPay) + CDbl(WednesdayPay) + CDbl(ThursdayPay) + CDbl(FridayPay) + CDbl(SaturdayPay)
Else
SundayPay = 0
Me.TotalPayCheck = CDbl(SundayPay) + CDbl(MondayPay) + CDbl(TuesdayPay) + CDbl(WednesdayPay) + CDbl(ThursdayPay) + CDbl(FridayPay) + CDbl(SaturdayPay)
End If
End Sub
But I need to add in this and I have tried adding it in as another If under under the working one and within it and can't get it to process either way I know I'm missing something or more like forgeting something I just cant figure it out...
Code:
If CheckSun = True And PayType = Commission Then
SundayPay = (cdbl(SunCom) * (PayRate))
Me.TotalPayCheck = CDbl(SundayPay) + CDbl(MondayPay) + CDbl(TuesdayPay) + CDbl(WednesdayPay) + CDbl(ThursdayPay) + CDbl(FridayPay) + CDbl(SaturdayPay)
Else
End If
End Sub