Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change warning message, not in list. 1

Status
Not open for further replies.

LD1010

Technical User
Dec 6, 2001
78
US
Thanks for reading my post.

I have a combo box on a form with it's Limit To List property set to yes/true. If the user enters an item, in my case a date, that's not in the list a message box pops up stating "The text you entered isn't an item in the list." Is there a way to modify the message to say something different?

Any help would be much appreciated.
 
You can use the NotInList event for the combo:

Code:
Private Sub Combo0_NotInList(NewData As String, Response As Integer)
    MsgBox "Tut,tut"
    Response = acDataErrContinue
End Sub

 
Thanks for the help Remou, just what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top