Originally Posted by
Danielh1000
Why would this code produce an overflow error at the lvDailyEarnings = 3000*12? This is only 36,000, well within an Long Integer
Private Sub Form_Open(Cancel As Integer)
Dim lvDailyEarnings As Long
'
lvDailyEarnings = 3000 * 12
'
With Me
.AllowAdditions = False
.AllowDeletions = False
.AllowEdits = False
.LNoEdits.Visible = True
'
.txtOneMonth = gcDaysPerMonth
.LOneMonthExample.Caption = "If an employee... "
.txtOneYear = gcDaysPerYear
.LAbsentExample.Caption = "If an employee ..."
.LAbsentExample1.Caption = "For example..."
.LOneYearExample.Caption = "If an employee ..."
End With
End Sub