[Migrated content. Thread originally posted on 04 December 2007]
Ok, here's what I'm trying to do. I have a field that I'm trying to validate against a data file. The user enters in a number and it looks in the data file to see if that number exists. If the number is not on file, I want to display a message box type MB-YES-NO that will ask if they want to add that record. The problem that I'm having is that no matter what I try it will not let me advance to the next field if the user selects the "Yes" button. I have experimented with this and it seems that no matter if you do an event MSG-Validate or an "after procedure" and display a message box, it will not advance to the next field.I have tried doing different event-actions. I've tried using accept-control and even a combination of both and no matter what I do, it will not advance to the next field.
What I ended up doing was to create a new floating window with the error message on the screen and buttons for "Yes" and "No" and calling that.
I have searched the forums here and found nothing. I have searched through the manual and found nothing that relates to this. So I guess my question is, does anybody have a way around this behavior? I like using the "DISPLAY MESSAGE BOX" function as it allows pressing a single key for "Yes" or "No", plus, it is a cleaner look for displaying messages.



