Hi, I'm doing this simple program which I don't know how to to.
I have this form in it a employee txtbox, a masked date txtbox & a vacation hour txtbox, & a result lblbox,
when the user puts the info in it, i need the calculate btn to calculate as follows:
if the employee is hired 1 year ago, then the lbl should say he has 40 hours of vacation to go, if 2 years ago then 80 hours.
if in the vacatio box there was (any vacation that he already had) then diduct that from the total vacation that he has.
I hope someone undrestand what i wrote.
tha's how i verifyed my variables.
I'm having problems with the date???
Dim strName As String
Dim decDate As Decimal
Dim decVacation As Decimal
strName = Me.txtName.Text
decDate = CDec(Me.txtDate.Text)
decVacation = CDec(Me.txtVacation.Text)
Pls help I need that.
Thank you
Hokis
I have this form in it a employee txtbox, a masked date txtbox & a vacation hour txtbox, & a result lblbox,
when the user puts the info in it, i need the calculate btn to calculate as follows:
if the employee is hired 1 year ago, then the lbl should say he has 40 hours of vacation to go, if 2 years ago then 80 hours.
if in the vacatio box there was (any vacation that he already had) then diduct that from the total vacation that he has.
I hope someone undrestand what i wrote.
tha's how i verifyed my variables.
I'm having problems with the date???
Dim strName As String
Dim decDate As Decimal
Dim decVacation As Decimal
strName = Me.txtName.Text
decDate = CDec(Me.txtDate.Text)
decVacation = CDec(Me.txtVacation.Text)
Pls help I need that.
Thank you
Hokis