|
-
Jul 18th, 2004, 07:22 PM
#1
Thread Starter
Hyperactive Member
public connection
I put this on the module;
Public mypath = Application.StartupPath & "\mydb.mdb"
Public mypassword = ""
Public conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mypath & ";Jet OLEDB atabase Password=" & mypassword)
Public cmd As OleDbCommand
But I encounter this errors;
Type 'OleDbConnection' is not defined.
Type 'OleDbCommand' is not defined.
what's wrong with this code? What's the best thing to do?
-
Jul 18th, 2004, 08:12 PM
#2
Fanatic Member
imports system.data.oledb???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|