Access开发培训
网站公告
·Access专家课堂QQ群号:151711184    ·Access快速开发平台下载地址及教程    ·欢迎加入Access专家课堂微信群!    ·如何快速搜索本站文章|示例|资料    
您的位置: 首页 > 技术文章 > Access数据库-窗体/数据页

打开窗体后进入新增模式

时 间:2007-10-27 11:11:36
作 者:竹笛   ID:8  城市:上海  QQ:2851379730点击这里给张志发消息
摘 要:打开窗体后进入新增模式
正 文:

Opening a Form at a new Record

There are a couple of ways, depending on how you want your input forms to behave after they've been opened. If you only want to enter records, then in the code to open the form, put this code:
DoCmd.OpenForm "frmName", acNormal, ,acFormAdd

If you want to be able to navigate to other records in the form, then put the following code in the OnLoad event for the form:

Private Sub Form_Load()
DoCmd.GoToRecord , , acNewRec
End Sub

Access软件网QQ交流群 (群号:483923997)       Access源码网店

常见问答:

技术分类:

相关资源:

专栏作家

关于我们 | 服务条款 | 在线投稿 | 友情链接 | 网站统计 | 网站帮助