#Deleted after record deleted

G

Guest

I'm getting #Deleted in each field of my subform after I execute the record
delete code in visual basic. When I close the form and reopen it, the
#Deleted is gone. What do I need to do (or code to add) to NOT display the
#Deleted message in the record fields?
 
A

Allen Browne

Requery the subform after you execute the deletion, e.g.:

Forms![MyMain]![MySub].Form.Requery
 
G

Guest

Thanks!

Allen Browne said:
Requery the subform after you execute the deletion, e.g.:

Forms![MyMain]![MySub].Form.Requery

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

redrover said:
I'm getting #Deleted in each field of my subform after I execute the
record
delete code in visual basic. When I close the form and reopen it, the
#Deleted is gone. What do I need to do (or code to add) to NOT display
the
#Deleted message in the record fields?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top