在Visual Basic 2008中将访问记录插入Access数据库中 [英] Insering records in access database usin visual basic 2008

查看:58
本文介绍了在Visual Basic 2008中将访问记录插入Access数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我只想知道如何在Visual Basic 2008中进行sql查询后是否已成功插入记录.

Hi everybody

I just want to know how to know if the records has been inserted successfully after an sql query in visual basic 2008

推荐答案

假设它没有引发异常,那么它应该工作了.但是,确保(如果您感到严重的偏执)的唯一方法是发出SELECT命令并读回记录,然后将其与刚刚插入的数据进行比较.

虽然不应该,但我不确定如果发现不正确该怎么办...
Assuming it didn''t throw an exception, then it should have worked. But the only way to be sure (if you are feeling seriously paranoid) is to issue a SELECT command and read the record back, then compare it with the data you just inserted.

Shouldn''t need it though, and I''m not entirely sure what you will do if you find it isn''t right...


这篇关于在Visual Basic 2008中将访问记录插入Access数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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