G
geeves1293
Hello all again.
I have this following code in my program made with the help from this
community. I would like now to update this code with the following questions.
How do I add extra words like *steel*? Is it by adding an 'or' statement
between the like and then, or do I just add another if statement?
And can I update a yes/no field in same table as fldDESCRIPTION_SUMMARY by
pressing the result yes?
Private Sub fldDESCRIPTION_SUMMARY_AfterUpdate()
Dim TheAnswer As Boolean
If Me.fldDESCRIPTION_SUMMARY Like "*rail*" Then TheAnswer = MsgBox("Has
rail", vbYesNo, "Result")
End Sub
Many thanks to all that help
Graham
I have this following code in my program made with the help from this
community. I would like now to update this code with the following questions.
How do I add extra words like *steel*? Is it by adding an 'or' statement
between the like and then, or do I just add another if statement?
And can I update a yes/no field in same table as fldDESCRIPTION_SUMMARY by
pressing the result yes?
Private Sub fldDESCRIPTION_SUMMARY_AfterUpdate()
Dim TheAnswer As Boolean
If Me.fldDESCRIPTION_SUMMARY Like "*rail*" Then TheAnswer = MsgBox("Has
rail", vbYesNo, "Result")
End Sub
Many thanks to all that help
Graham