Hi,
Im trying to take a value from me.hour and if its a positive number convert it to CD and if its negative convert to CC. Below is my code
Code:
sHourType = Me.Hour.Value
sCostCode = Me.CostCode
sActivity = Me.Activity.Column(0)
sProject = Me.Project
sHours = Nz(Me.Hour, 0)
sDescript = Nz(Me.Description, " ")
Me.Description = sDescript
sLogUser = Me.LoggedInUser
sDate = Me.DatePicker
sProjectRef = Me.Project.Column(2) & "-" & Me.SubProjectCode
If sHourType <> 0 Then
sHourType = "CD"
Else
sHourType = "CC"
End If
Currently regardless if its +'ve or -'ve it comes back CD. Can anyone spot what I am doing wrong?
Thanks