Solved

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

Posted on 2013-01-29
2
298 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
Comment Utility
0
 
LVL 35

Accepted Solution

by:
YZlat earned 250 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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.

744 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

18 Experts available now in Live!

Get 1:1 Help Now