Solved

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

Posted on 2013-01-29
2
302 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

763 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