Solved

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

Posted on 2013-01-29
2
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

738 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