急问~ 向数据库添加新数据时怎么判断主码的重复啊
急问~!! 向数据库添加新数据时如何判断主码的重复啊?!!!
如题
各位在VB里用什么方法能实现阿?
就是如
if ... then
...
else
...
endif
这样的语句
我用的数据库是access
------解决方案--------------------
on error goto ToExit
'--语句
exit sub
ToExit:
Msgbox err.description
如题
各位在VB里用什么方法能实现阿?
就是如
if ... then
...
else
...
endif
这样的语句
我用的数据库是access
------解决方案--------------------
on error goto ToExit
'--语句
exit sub
ToExit:
Msgbox err.description