G
Guest
I want to use a button on a form to delete a record. However, prior to the record being deleted I would like the record to be written to a deleted records table. I am going to use the following code to do this 'cause each record has about 100 fields
f_out.Addne
For i = 0 to f_in.Fields.Count -
f_out.Fields(i) = f_in.Fields(i
Nex
f_out.Updat
'delete record code her
'requery form code her
I am worried what will happen if the user cancels the delete action when the "confirm delete" message box appears. If this is the case then I don't want the record to be written to the deleted records table. Should I just move the f_out.update code to the end of the routine or is there a cleaner way of doing things
Thanks
f_out.Addne
For i = 0 to f_in.Fields.Count -
f_out.Fields(i) = f_in.Fields(i
Nex
f_out.Updat
'delete record code her
'requery form code her
I am worried what will happen if the user cancels the delete action when the "confirm delete" message box appears. If this is the case then I don't want the record to be written to the deleted records table. Should I just move the f_out.update code to the end of the routine or is there a cleaner way of doing things
Thanks