Hi
I have a column in my Access database called 'VT', with a data type of Yes/No. The column contain checkboxes.
Code Block
vibrotactile = ds.Tables("maskingSimulator").Rows(s).Item("VT")
I stored the values in a variable called 'vibrotactile' and declare vibrotactile as Boolean. If my VT column is not checked, it will carry out Case 1. Else, if my VT column is checked, it will carry out Case 2. How do i put it into codes? I tried to put 'if vibrotactile = false' and 'if vibrotactile = true'. But it doesn't seem to work. How do i go about it? Should vibrotactile be declared as boolean?
Code Block
If vibrotactile = False Then
'Case 1
acTestEarThreshold = acTestEarThreshold
End If
If vibrotactile = True Then
'Case 2
If acTestEarThreshold <= 20 Then
acTestEarThreshold = acTestEarThreshold
ElseIf acTestEarThreshold > 20 Then
acTestEarThreshold = 20
End If
End If