在vb.net中从后端获取数据的一个问题 [英] one problem in fetching a data from backend in vb.net

查看:72
本文介绍了在vb.net中从后端获取数据的一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个表格.
第一个是文本框,第二个是组合框.

我在文本框中只有一个值,但是组合框有多个值,这取决于文本框的值.

当我在文本框中写内容时,我要求组合框中提供"ALL"值.

谁能解决我的问题?

我将MS Access用于后端.
如何创建可用于解决我的问题的表?

给我任何参考或代码.

I have two items in a form.
First is a textbox and second is combo box.

I have single value in textbox but there is a multiple values for the combobox which depend on the value of the textbox.

When I write in textbox I require an ''ALL'' value is available in the combo box.

Can any one solve my problem?

I used MS Access for my backend.
How can I create a table that can be used for a my problem?

Give me any reference or codes.

推荐答案

从数据库返回值时,您实际上可以将all全部合并到源中.

例如

While returning values from the database, you can actually union an all to your source.

For e.g.

select ''All'', null <br />
UNION<br />
<br />
select emp_name,emp_age from emp_table


类似...的东西

Something along the lines of...

if textbox1.value<>"" then combobox1.add("ALL")


这篇关于在vb.net中从后端获取数据的一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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