Delete last record (required field) on form

DebSabre

Registered User.
Local time
Today, 04:50
Joined
Jul 8, 2003
Messages
17
I have a form that contains multiple records. I can delete each entry successfully without any Access harrassment. However, when I select the last record and either hit the delete key or click on my delete record button focus remains on the required field and any attempts to go anywhere else on the form render the message "The field xxx can't contain a Null value because the required property for this field is set to True. Enter a value in this field." I do want this field to be required to avoid adding blank records to the database. Also, I purposely want focus on the required field to make sure the user enters data. It's like I'm in a delete mode and can't get out without getting that message. I have tried gotorecord to go to another record. I have tried sendkeys to send an escape to break out. All this with very little success. If anybody has a clue, please let me know. Thanks.:(
 
Is this a new record that hasn't been saved yet? if so you need Me.Undo
 
I just plugged that in and low and behold it works. Thanks alot.
 

Users who are viewing this thread

Back
Top Bottom