Computing.Net > Forums > Programming > VB .Net - Connection object

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB .Net - Connection object

Reply to Message Icon

Name: duquetten
Date: July 20, 2005 at 11:16:37 Pacific
OS: XP
CPU/Ram: 2.4 GHz/1 GB
Comment:

Hi all,
I created a form in VB .Net called frmStart. If the user clicks Yes on the form, they are brought to another form called frmYes. On this form there are several fields for them to fill in. Then they click a submit button. The action associated with clicking the button is to call another function (Private Sub) and pass it the user data.
btSUB_frmYes is the name of the button so:
Private btSUB_frmYes_Click ()
. . . code that processes the form data
Call updateThruputDB(strFileName, blResult,strComments)

End Sub
In Priave updateThruputDB( . . . )
I want to say:
Dim cnThruputDB AS Connection but Connection is not an option, in the list that appears I only have ConnectionState.

I have looked all over the web and can not figure this out. Can someone please explain why "Connection" is not available?
I created this in Visual Studio .Net as a windows application that is compiled and the starting point is frmStart.
Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: July 21, 2005 at 03:11:58 Pacific
Reply:

well, first off you need to make certain that you are:

using System.Data.OleDb;

and/or

using System.Data.Odbc;

then you can make one of these:

Dim OleDbConnection CN As new OleDbConnection

and/or

Dim OdbcConnection ODBCCN As new OdbcConnection

Hope this sets you in the right direction.

Chi

They mostly come at night...mostly.


0

Response Number 2
Name: Chi Happens
Date: July 21, 2005 at 03:12:56 Pacific
Reply:

PS please forgive the semi-colons. I program in C# not vb.net so I "tried" to convert them...but forgot about the ;

Chi :)

They mostly come at night...mostly.


0

Response Number 3
Name: sant
Date: August 29, 2005 at 08:54:50 Pacific
Reply:

i can't find the data about connection method in dot net.Plz send the connection techenique in dot net.
thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB .Net - Connection object

I need some major VB.Net help www.computing.net/answers/programming/i-need-some-major-vbnet-help/3702.html

need help in vb.net www.computing.net/answers/programming/need-help-in-vbnet/5974.html

vb.net with oracle database connect www.computing.net/answers/programming/vbnet-with-oracle-database-connect/11090.html