如何在vb .net中以其他形式使用数据库 [英] how to use database in another forms in vb .net

查看:86
本文介绍了如何在vb .net中以其他形式使用数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生/女士,

我正在vb .net上进行选举投票系统的项目。我为它连接了一个数据库,但是如何在我的项目中以另一种形式使用该数据。在我的项目中,我提供了参与选举的选民名单和候选人名单。这个选举制度就像给特定选民的代码一样。特别候选人。现在的问题是,在我的项目中我有一个像铸造形式的形式。在我添加了文本框,我们给特定候选人的代码投票。我在我的数据库中提供的。所以请帮助我,检索那些数据,如何编写代码。请。



请尽快给我发送解决方案。

我的数据库连接是ms访问。如果我给候选文本框一个密码/代码,它应该去数据库,并且应该检查它,如果是,它应该被投射。

respected sir/ madam,
i am doing a project on election voting system in vb .net. i have connected a database for it, but how can i use that data in another form in my project.in my project i provided voter list and candidates list who are participating in election.this election system like giving code to a particular voter to a particular candidate. now the problem is, in my project i have a form like casting form. in that i added text box, where we give a code to particular candidate to vote them. that to which i provided in my database. so kindly help me, to retrieve that data, how to write the code for that. please.

please send me solution as soon as possible.
my database connction is ms access. if i give a password/ code to candidate textbox, it should go to database, and should check it, if yes it should cast.

推荐答案

你好


请清楚你的问题我们不能推测你的DBMS是什么,例如Access,MS-SQL或......所以如果你使用MS SQL你应该设置ip base connection string你可以从中看到链接:

http://www.connectionstrings.com/ [ ^ ]



如果您使用的是MS Access I假设你改变你的DBMS并使用MS-SQL来解决任何问题请告诉我;-)



最好的问候
Hi
Please clear your question we can not speculate what is your DBMS for example Access, MS-SQL or ... so if you are use MS SQL you should set ip base connection string you can see from this link:
http://www.connectionstrings.com/[^]

If you are use a MS Access I suppose to you change your DBMS and use MS-SQL for any question please tell me ;-)

Best Regards


这篇关于如何在vb .net中以其他形式使用数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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