简体   繁体   中英

Access 2010 how to I clear SubForm after a new record is add (VBA

I was just wondering if there is any way to clear subform after I click the button Send in VBA (Access 2010). I am able to clear the textbox and the cbox by using SetProperty
在此处输入图片说明

Just delete the contents of the table the subform is bound to :)

Part of your "Send" button can have this line of code

"DoCmd.RunSql "DELETE * FROM mytbl"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM