我如何...使用vb.net将数据库字段与组合框的选定值进行比较 [英] How do I...Compare databse field with selected value of a combo box using vb.net

查看:81
本文介绍了我如何...使用vb.net将数据库字段与组合框的选定值进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用vb.net将数据库字段与组合框的选定值进行比较

Compare databse field with selected value of a combo box using vb.net

推荐答案

您可以使用查询执行此操作。



假设您的下拉值为'abc'。

使用类似的查询查询数据库从表中选择count(*),其中value =' abc'



如果返回的计数为0,表中没有该字段的数据。
You can do this using a query.

Assuming your drop down value is 'abc'.
Query the database with a query like select count(*) from table where value='abc'.

If the count returned is 0, there is no data for this field available in the table.


这篇关于我如何...使用vb.net将数据库字段与组合框的选定值进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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