我在这段代码中收到一条错误消息:object reference not set to an instance of an object。
Private Sub frmAdd_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
con.ConnectionString = strcon
con.Open()
con.ConnectionString = strcon
我该如何解决这个错误?