Hello,
I am using the AddNew (eg. Adodc3.Recordset.AddNew) and Update (eg. Adodc3.Recordset.Update) methods to add a new record to my database. At the moment if somebody accidently clicks the update command before the AddNew command the program shut down (Run Time Error). What code can I use in an IF Then statement in the Update command to say that "Unless the AddNew command has been clicked first, do not update the database (record)".
Thank you
I am using the AddNew (eg. Adodc3.Recordset.AddNew) and Update (eg. Adodc3.Recordset.Update) methods to add a new record to my database. At the moment if somebody accidently clicks the update command before the AddNew command the program shut down (Run Time Error). What code can I use in an IF Then statement in the Update command to say that "Unless the AddNew command has been clicked first, do not update the database (record)".
Thank you