Vb.net并访问2016 [英] Vb.net and access 2016

查看:111
本文介绍了Vb.net并访问2016的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有accdb格式的Access 2016。我在写完DB后尝试阅读并且字段未更新。如果我查看访问中的表 - 字段写得很好。只有在我退出表格并再次返回后,屏幕上才会更新字段。



是否有任何vb数据 - apdapter命令,我可以使用它来闪存db的缓冲区?



我的尝试:



我尝试使用事务提交但没有成功。试图丢弃适配器并再次调暗它,尝试关闭连接并再次打开它。这些都不起作用。

I am using Access 2016 with accdb format. I am trying to read after write the DB and the fields are not updated. If i look at the table in access - the fields are written fine. Only after i exit the form and come back again the field is updated on the screen.

Is there any vb data - apdapter command that i can use in order to flash the buffers to the db ?

What I have tried:

I tried using transaction commit without success. Tried to dispose the adapter and dim it again, tried closing the connection and opening it again. None of these worked.

推荐答案

是的,有一个 DataAdapter.Update(DataSet)Method(System.Data.Common)| Microsoft Docs [ ^ ]



有关详细信息,请参阅:使用DataAdapters更新数据源Microsoft Docs [ ^ ]
Yes, there's a DataAdapter.Update(DataSet) Method (System.Data.Common) | Microsoft Docs[^]

For further details, please see: Updating Data Sources with DataAdapters | Microsoft Docs[^]


这篇关于Vb.net并访问2016的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆