And the code on the close event of this form is....?
1. Try Hiding the form first.
Me.visible=False
DoCmd.Close acForm, "subxpaytemp"
2. Or hide the controls
Dim ctl as Control
For each ctl in me.controls
ctl.visible=False
next ctl
DoCmd.Close acForm, "subxpaytemp"
3. Or instead of deleting the records, delete the entire table
CurrentDB.execute "Drop Table YourTable",dbfailonError
DoCmd.Close acForm, "subxpaytemp"
...then recreate and load it when the form opens
4. Or move the "Delete" code to the code that "Opens" the form.
(So before the form is opened the old data is delete and the new data is added)
5. Or set the Forecolor (Fontcolor) to white...
...I'm sure you get the idea.
Basically you want to do whatever you can so the #Deleted never has a chance to display.
;-)
JeffCoachman