Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to Access Database trouble

Status
Not open for further replies.
Jun 4, 2003
18
GB
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
 
Is that VB.NET you're working with. You might have more luck with forum796
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top