Ofer Please Help

M

mjcxp

OK here is the deal.

I am trying to figure out how to check to see if a checkbox is checked to
then multiply a field by 2 to get the life benefit amount. Here is my current
code. THANKS

Dim MyDB As Database
Set MyDB = CodeDb()
If [Lay Employee].Value = yes Then
Me.[Life Benefit] = Me.[Annual Salary] * 2
End If
End Sub
 
O

Ofer

For that there is no need to open the database, all you need is

If Me.[Lay Employee] = True Then
Me.[Life Benefit] = Me.[Annual Salary] * 2
End If
 
Top