T
tlyczko
I have this code for validating a not in list event, combo box IS set
to limit to list.
User hits tab or enter, no errors get generated, why???
'6/27/05 determine whether to add it to the list
If MsgBox("The value you just entered (" & NewData & ") " & _
"is not in the list. Do you want to add it?" & vbCrLf & vbCrLf &
"Please be sure before you add it." _
, vbQuestion + vbYesNo, "Add to list?") = vbNo Then
'DON'T add it ... go to exit label
Response = acDataErrContinue
GoTo Exit_txtName_NotInList
Else 'DO ADD it to the dropdown list
If IsNull(NewData) = True Or NewData = "" Or Len(NewData) < 1 Or
InStr(NewData, ", ") < 1 Then
Call MsgBox("Please enter a new name in the format 'Last, First' in
the Name: field.", vbExclamation Or vbSystemModal, "Required Data
Entry")
Response = acDataErrContinue '6/27/05 don't proceed further
GoTo Exit_txtName_NotInList
End If
'from here onward go to adding name to the database table
My problem is that the user can easily hit tab or enter and NOTHING, no
error messages come up, how do I fix this, do I test for tab and enter
in the key down event????
Thank you, Tom
to limit to list.
User hits tab or enter, no errors get generated, why???
'6/27/05 determine whether to add it to the list
If MsgBox("The value you just entered (" & NewData & ") " & _
"is not in the list. Do you want to add it?" & vbCrLf & vbCrLf &
"Please be sure before you add it." _
, vbQuestion + vbYesNo, "Add to list?") = vbNo Then
'DON'T add it ... go to exit label
Response = acDataErrContinue
GoTo Exit_txtName_NotInList
Else 'DO ADD it to the dropdown list
If IsNull(NewData) = True Or NewData = "" Or Len(NewData) < 1 Or
InStr(NewData, ", ") < 1 Then
Call MsgBox("Please enter a new name in the format 'Last, First' in
the Name: field.", vbExclamation Or vbSystemModal, "Required Data
Entry")
Response = acDataErrContinue '6/27/05 don't proceed further
GoTo Exit_txtName_NotInList
End If
'from here onward go to adding name to the database table
My problem is that the user can easily hit tab or enter and NOTHING, no
error messages come up, how do I fix this, do I test for tab and enter
in the key down event????
Thank you, Tom