ReportsNerd
Active member
- Joined
- Nov 24, 2012
- Messages
- 31
- Programming Experience
- 3-5
Hi Im creating a simple login form in VS 2010 with MS Access, but getting errors: Reference to a non-shared member requires an object reference. How do I correct this and maybe avoid in the future?
Code:
Imports WindowsApplication1.DTdatasetTableAdapters
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If Not SECURITYTableAdapter.Login(TextBox1.Text, TextBox2.Text) = Nothing Then
Then MsgBox ("Loged In!")
End If
End Sub
End Class
Thank you
Code:
Imports WindowsApplication1.DTdatasetTableAdapters
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If Not SECURITYTableAdapter.Login(TextBox1.Text, TextBox2.Text) = Nothing Then
Then MsgBox ("Loged In!")
End If
End Sub
End Class
Thank you