Ofer Please Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top