looks like you are missing user Id and password (even if not password protected still required) look here for different examples: http://www.connectionstrings.com/access
On Sep 19, 10:16 am, Eric <[email protected]> wrote: > Syntax error in OleDbConnection Not defined > Needs help > > Imports System.Data > Public Class Form1 > Dim myConn As OleDbConnection = New OleDbConnection(); > myConn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data > Source=C:\vbcl\My1.acdb;" > Private Sub Button1_Click(ByVal sender As System.Object, ByVal e > As System.EventArgs) Handles Button1.Click > Dim YesNo As DialogResult > YesNo = MessageBox.Show("Do you want to save this file?", _ > "Are you sure?", MessageBoxButtons.YesNoCancel, > MessageBoxIcon.Question) > 'Select YesNo > End Sub > End Class -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
