where do i define an oledbconnection in vb.net?
Posted on 2005-03-14
ive code this procedure to make a new connection, before i go any fuirther i want to get a prob cleared up.
my program is saying that oledbconnection not defined, where am i suppose to define it?
Private Sub MyDataConnection()
'declares and instantiates a new OleDbConnection object
Dim myConnection As New oledbconnection
'sets the connection string to indicate a microsoft access
'database as the specified path
myConnection.connectionstring = "Provider=microsoft.jet.oledb.4.0;" & _
"datasource=C:\Documents and Settings\Simon\My Documents\My Directory\Microsoft Certification\Projects\VB.Net Windows-Based Applications\dbFunctions.mdb"