Can anyone help to steer me in the right direction on this?
I have assigned a default PayType to each employee. Here is the PayType Table.
PayTypeID PayType RegRate OTRate
1 CLRK $10.83 $17.52
2 SOD $8.32 $18.26
3 HKA2 $7.75 $14.40
4 T&P $12.51 $21.54
5 SCAR $20.26 $36.17
6 GMW $16.48 $26.00
7 HVAC $10.89 $29.61
What I need to do is figure out how to tell my timesheet form to look at the default PayType for that employee and based on the PayType to select either the RegRate or OTRate.
Right now I am using a Select Statement to update the various fields and the field I want to update with this information is called Rate. I can't figure out how to reference the correct value based on the PaymentMethodID I select.
Here is a snipit of the Select Case Statement I am using on the AfterUpDate event of the PaymentMethodID field.
Private Sub PaymentMethodID_AfterUpdate()
Select Case Me.PaymentMethodID
Case Is = "25"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Me.Note = "$27.29"
Case Is = "26"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Case Is = "27"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Can anyone tell me how to go about adding to this statement?
I guess what I am looking for is Me.Rate=(RegRate's value) or (OTRate's value) based on the default PayType for the Employee.
This is something that my company just requested of me and I can't seem to wrap my mind around how to do it.
If anyone can help I would appreciate it more than you know.
RookieDev![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
I have assigned a default PayType to each employee. Here is the PayType Table.
PayTypeID PayType RegRate OTRate
1 CLRK $10.83 $17.52
2 SOD $8.32 $18.26
3 HKA2 $7.75 $14.40
4 T&P $12.51 $21.54
5 SCAR $20.26 $36.17
6 GMW $16.48 $26.00
7 HVAC $10.89 $29.61
What I need to do is figure out how to tell my timesheet form to look at the default PayType for that employee and based on the PayType to select either the RegRate or OTRate.
Right now I am using a Select Statement to update the various fields and the field I want to update with this information is called Rate. I can't figure out how to reference the correct value based on the PaymentMethodID I select.
Here is a snipit of the Select Case Statement I am using on the AfterUpDate event of the PaymentMethodID field.
Private Sub PaymentMethodID_AfterUpdate()
Select Case Me.PaymentMethodID
Case Is = "25"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Me.Note = "$27.29"
Case Is = "26"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Case Is = "27"
Me.Type = "REGULAR HOURS"
Me.Job_ = "729"
Me.LCode = "02"
Can anyone tell me how to go about adding to this statement?
I guess what I am looking for is Me.Rate=(RegRate's value) or (OTRate's value) based on the default PayType for the Employee.
This is something that my company just requested of me and I can't seem to wrap my mind around how to do it.
If anyone can help I would appreciate it more than you know.
RookieDev
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)