|
|
Re: Update Alert [message #661719 is a reply to message #661709] |
Wed, 29 March 2017 04:26   |
cookiemonster
Messages: 13965 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
When a select into doesn't find matching rows in the DB it raises the no_data_found exception.
Consequently your ELSIF and ELSE can never run - since if the IF isn't true you will have got no_data_found.
That said - I'm not sure why you've written any of this code. The ELSIF should be handled by setting the required property on the item, and inserting and updating should probably just be left to default forms behaviour. The user is going to know they're updating a record, because they will have queried it first (and if they haven't you're doing it wrong).
|
|
|
|
|
|