I have a form with a "Delete" button on top. I want this button to delete the current record and then close the form after. I have created a SQL string that runs to delete the current record:
DELETE [EnrollmentTable].* FROM [EnrollmentTable] WHERE [StudentID]=[Forms]![EnrollmentForm]![StudentID]
The problem I'm having is that if the user has begun to type in a new record and then decides that she/he has screwed up and wants to delete the record, the delete button doesn't actually delete anything.
Any suggestions?
Lis
DELETE [EnrollmentTable].* FROM [EnrollmentTable] WHERE [StudentID]=[Forms]![EnrollmentForm]![StudentID]
The problem I'm having is that if the user has begun to type in a new record and then decides that she/he has screwed up and wants to delete the record, the delete button doesn't actually delete anything.
Any suggestions?
Lis