Thanks Jason, I now have the delete behaviour working, consequently I now have a problem with the page as a result of the delete behaviour.
The form that has the delete file behaviour is inside a repeat region. The repeat region is the correspondence for each enquiry. when the user posts a correspondence with an attachment it displays that post below the enquiry in the repeat region. The upload file also passes the file name to a field in the database table. ( This field is displayed in the repeat region so the user can see which post has uploaded a file, if there is no attachment the value of 'none' is passed to the Database. )
I have then tried to add an update record behaviour to the form that deletes the file so when the delete button is pressed it updates the files_c column to 'none' instead of the file name of the file thats just been deleted. ( I hope this is all making sense so far! )
Here's my problem!
Say there is an enquiry with three correspondence posts and the user wants to delete the file from the third post. If the 'Delete file' button on that post is pressed, it deletes the file but it updates the first post and not the third.
I hope I am making sense!!
Attached is the latest page!