Solved

send sql values from one form to another form in vb.net windoes application

Posted on 2013-01-29
2
300 Views
Last Modified: 2013-02-07
how to send sql values from one form to another form in vb.net windoes application
0
Comment
Question by:mohgt
2 Comments
 
LVL 22

Assisted Solution

by:Mrunal
Mrunal earned 250 total points
ID: 38834103
0
 
LVL 35

Accepted Solution

by:
YZlat earned 250 total points
ID: 38836484
1) you could declare a global variable, by defining it in a Module as Public:

http://www.programmersheaven.com/mb/VBNET/382766/382766/global-variable/

then assign it the value of your sql:

MyVar=your_value_here

and access it from any form using

ModuleName.MyVar


2) Define a public variable on one form, and access it from another form as:

Form1.MyVar
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now