Hello,
I made this OT Calculator in Excel using VBA and trying to do the same thing on MS Access. Need help on how I can get the value on TextBox when I make the selection on ComboBox.
I have 3 ComboBox. ComboBox1 for Position, ComboBox2 for Step and ComboBox3 for Status. Once I select all 3 values and Click the Calculate Button I want it to give me the value on TextBox (TextBox1 for Base Pay and TextBox2 for OT Rate). This was the code used in excel.
If ComboBox1.Value = "Accountant" And ComboBox2.Value = "1" And ComboBox3.Value = "Employee" Then
TextBox1.Text = "$2000.00"
End If
If ComboBox1.Value = "Accountant" And ComboBox2.Value = "1" And ComboBox3.Value = "Employee" Then
TextBox1.Text = "$25"
End If
This is not working for MS Access. I have also attached the Form Design. Thank you for help in advance.