Hi Guys,
I have a form in which is used as two separate things - one being a patient lookup & the other being a credit card form.Once they search for a patient all that patients info populates & if they chose to make a payment they fill out the second side of the form ...
My question is - When the employee uses the form just as a lookup it still saves the record to the table, it's just incomplete. Meaning the table is only used for a complete form. So I created a button that would make everything "" & then also added a docmd.runcommand accmddelete record
But this doesn't work as if they user continues to click on it will delete ALL the records in the table - I just want it to delete the incomplete record they currently are on & nothing else. I messed around with me.undo but once again, if you continue to click it will just cycle through all records you inputed to the table.
Any ideas how to just delete the current entry?
I have a form in which is used as two separate things - one being a patient lookup & the other being a credit card form.Once they search for a patient all that patients info populates & if they chose to make a payment they fill out the second side of the form ...
My question is - When the employee uses the form just as a lookup it still saves the record to the table, it's just incomplete. Meaning the table is only used for a complete form. So I created a button that would make everything "" & then also added a docmd.runcommand accmddelete record
But this doesn't work as if they user continues to click on it will delete ALL the records in the table - I just want it to delete the incomplete record they currently are on & nothing else. I messed around with me.undo but once again, if you continue to click it will just cycle through all records you inputed to the table.
Any ideas how to just delete the current entry?