Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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

how to send sql values from one form to another form in vb.net windoes application
0
mohgt
Asked:
mohgt
2 Solutions
 
MrunalCommented:
0
 
YZlatCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now