Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

[RESOLVED] how to use connection string within a module in other forms

$
0
0
I have just recently learnt about modules and have declared a connection string in a module called module1. the name of the connection is myConnection and it is within a subroutine called connectDB( )

I wish to know how to use it in the forms.
for eg a form to validate username and password using let's say.... Dim cmd As OleDbCommand = New Oledb( string name, connection name)

also do I need to declare the connection string in a function or in a subroutine?

thanks. and yes my knowledge in VB.net is basic..

Viewing all articles
Browse latest Browse all 27349

Trending Articles