hi all
I would like to limit the text entered within a combo box to a value no more than 10 characters then automatically truncate the values if the number of characters is greater than 10. I have placed code on the not in list event of a combo box this is an extract
If Len(NewData) > 10 Or blkok = True Then
DisplayMessage "Text Too Long Enter a Maximum of 10 Characters "
NewData = Left(NewData, 10)
Cancel = True
Response = acDataErrContinue
End If
what have i missed, it doesnt truncate anything
I would like to limit the text entered within a combo box to a value no more than 10 characters then automatically truncate the values if the number of characters is greater than 10. I have placed code on the not in list event of a combo box this is an extract
If Len(NewData) > 10 Or blkok = True Then
DisplayMessage "Text Too Long Enter a Maximum of 10 Characters "
NewData = Left(NewData, 10)
Cancel = True
Response = acDataErrContinue
End If
what have i missed, it doesnt truncate anything