如何在vb2010中编写访问数据搜索代码 [英] How to write access data search code in vb2010

查看:71
本文介绍了如何在vb2010中编写访问数据搜索代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

lz任何人都可以帮助我......

i在ms访问数据库中只有一个表(2007)。该表只包含两个字段ID,Name.i想要使用这个表来搜索ID(主键)和结果应显示特定ID的名称。

在vb.net(2010)表单中,我放置了一个文本框,一个按钮和一个显示结果的标签。我添加了项目中的数据库。现在我必须要做.......请帮助我们



我尝试了什么:



Me.Studendentdatabinding.filter =学生证,& Textbox1.Text& %'

解决方案

请参阅 ms access vb.net - Google搜索 [ ^ ]。

lz any one can help me...
i have only one table in an ms access database(2007).that table contain two fields only ID,Name.i want to search that table using ID(primary key) and result should show the name of particular id.
In a vb.net(2010) form i put one text box,one button and one label which show result.And i added the database in project.NOW WANT I HAVE TO DO.......PLEASE HELP MEn

What I have tried:

Me.Studendentdatabinding.filter = "Student ID ," & Textbox1.Text & "%'"

解决方案

See ms access vb.net - Google Search[^].


这篇关于如何在vb2010中编写访问数据搜索代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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