P
Phil
Dear All
it has been a long time since I have posted here but I am now totally stuck
I have a Combo box on a form that has a value of 1-3, if the value is 3 I
want a message box to ask a question, if the answer is yes I want it to set
[ACST] to -1 (it is a checkbox) [EventName] to "National Advanced
Communication Course"
I have tried to come up with the code and it works to bring up the message
box only for number 3 but it does not change the control value, I have only
added one control at the moment just to see if I was on the right track
I always have trouble when it comes to more than 1 if statement
Here is what i came up with:
Private Sub EventTypeID_AfterUpdate()
If Me.EventTypeID.Value = 3 Then
If MsgBox("Is this a National Advanced Communication Skills Training
Programme?", vbYesNo, "Advanced Communication Skills") = vbayes Then
Me.EventName = "ACST", Me.ACST = -1
Else
Else
End If
End Sub
Hope someone can help
Thanks
Phil
it has been a long time since I have posted here but I am now totally stuck
I have a Combo box on a form that has a value of 1-3, if the value is 3 I
want a message box to ask a question, if the answer is yes I want it to set
[ACST] to -1 (it is a checkbox) [EventName] to "National Advanced
Communication Course"
I have tried to come up with the code and it works to bring up the message
box only for number 3 but it does not change the control value, I have only
added one control at the moment just to see if I was on the right track
I always have trouble when it comes to more than 1 if statement
Here is what i came up with:
Private Sub EventTypeID_AfterUpdate()
If Me.EventTypeID.Value = 3 Then
If MsgBox("Is this a National Advanced Communication Skills Training
Programme?", vbYesNo, "Advanced Communication Skills") = vbayes Then
Me.EventName = "ACST", Me.ACST = -1
Else
Else
End If
End Sub
Hope someone can help
Thanks
Phil