MS access 2007,单表到多表
我想处理一个表单,在这里我将在文本字段中输入数据,这将作为新条目更新到表格中。现在,在可用的字段之外,我希望将其中的一些字段存储到另一个表中。所以这就像将表单数据保存到多个表中一样。我搜索了很多地方但没有找到任何解决方案。
i want to work on a form, here i will enter the data into text fields and this will be updated into a table as a new entry. Now out of the fields available iwant few of them to be stored into another table. so its like saving form data into multiple tables. I searched in many places but cudnt find any solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最好的解决方案是使用表单和子表单。 Table1 绑定到窗体,Table2 绑定到子窗体。
The best solution is to use a form and a subform. Table1 is bound to form and Table2 is bound to subform.
感谢您的解决方案...虽然我不想采用另一种形式...但我找到了一种方法...对于第二个表,我引入了一个按钮,并在单击事件时编写了一个VB代码,这样它看起来对于类型为 autonumber 的 ID 字段(为了搜索行而引入),并使用带有条件表达式的 dlookup 来查找第二个表 n 中的行,使用了插入语句...这有效...感谢您的回复,非常感谢...
Thanks for the solution...i dont want to go for another form though...but i figured out a way..for the 2nd table i introduced a button and on click of the event wrote a vb code such that it will look for ID field of type autonumber(introduced for the sake of searching row) and used dlookup with a criteria expression to find out the row in 2nd table n used a insert statement...this worked...thanks for the response, appreciate it...