CharlotteR
MIS
I have worked my way through a Microsoft book on connecting to an Access database.
I have connected to the database, created a Data Adapter and a DataSet, all correctly. However, when i Run the program, the InitializeComponent() causes a problem. The message says "An unhandled exception of type 'System.Security.SecurityException' occurred. The InitializeComponent() statement, however, is in the Windows Form Designer generated code, which obviously ive had no input on.
This is the only code i have entered:
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
DsInstructors1.Clear()
OleDbDataAdapter1.Fill(DsInstructors1)
End Sub
Any ideas what is going wrong??
ta,
CharlotteR
I have connected to the database, created a Data Adapter and a DataSet, all correctly. However, when i Run the program, the InitializeComponent() causes a problem. The message says "An unhandled exception of type 'System.Security.SecurityException' occurred. The InitializeComponent() statement, however, is in the Windows Form Designer generated code, which obviously ive had no input on.
This is the only code i have entered:
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
DsInstructors1.Clear()
OleDbDataAdapter1.Fill(DsInstructors1)
End Sub
Any ideas what is going wrong??
ta,
CharlotteR