I have created an event proceedure attached to a drop down list, and when the value changes, I have created the following code:
If QuestionType = "TF" Then
For j = 1 To 5
If j < 3 Then
Me.Controls("Correct" & j).Enabled = True
Else
Me.Controls("Correct" & j).Enabled = False
Me.Controls("Option" & j).Enabled = False
End If
Next j
Option1.Value = "True"
Option2.Value = "False"
Option3.Value = " "
Option4.Value = " "
Option5.Value = " "
Else
For j = 1 To 5
Me.Controls("Correct" & j).Enabled = True
Me.Controls("Option" & j).Enabled = True
Next j
End If
Hope thats all OK however, I am trying to include the following:
Me.Controls("Correct" & j).Value = False
I run the database the first time and everything works OK, but when I close I get an error message:
See attached file.
I run the debug, which the highlights the following:
Option1.Value = "True"
Hope you can help!!!!
If QuestionType = "TF" Then
For j = 1 To 5
If j < 3 Then
Me.Controls("Correct" & j).Enabled = True
Else
Me.Controls("Correct" & j).Enabled = False
Me.Controls("Option" & j).Enabled = False
End If
Next j
Option1.Value = "True"
Option2.Value = "False"
Option3.Value = " "
Option4.Value = " "
Option5.Value = " "
Else
For j = 1 To 5
Me.Controls("Correct" & j).Enabled = True
Me.Controls("Option" & j).Enabled = True
Next j
End If
Hope thats all OK however, I am trying to include the following:
Me.Controls("Correct" & j).Value = False
I run the database the first time and everything works OK, but when I close I get an error message:
See attached file.
I run the debug, which the highlights the following:
Option1.Value = "True"
Hope you can help!!!!